-
-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix[lang]: transitive exports #3888
Changes from all commits
7e4a548
484cc8a
9585f93
047165a
164bb56
175ba00
f32e952
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,6 +1,3 @@ | ||||||||
import pytest | ||||||||
|
||||||||
|
||||||||
def test_simple_export(make_input_bundle, get_contract): | ||||||||
lib1 = """ | ||||||||
@external | ||||||||
|
@@ -131,9 +128,7 @@ def foo() -> uint256: | |||||||
assert c.foo() == 5 | ||||||||
|
||||||||
|
||||||||
# not sure if this one should work | ||||||||
@pytest.mark.xfail(reason="ambiguous spec") | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the the future we should track these cases (i.e. Nit: if we use
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't really get this -- it's easy to grep the codebase or to run with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
My point is not that it's easy, but that we forget about certain |
||||||||
def test_recursive_export(make_input_bundle, get_contract): | ||||||||
def test_transitive_export(make_input_bundle, get_contract): | ||||||||
lib1 = """ | ||||||||
@external | ||||||||
def foo() -> uint256: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this should be |
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the current test for transitive exports is pretty limited. Is there a smart way, where we can fuzz different nestedness & visibility decorators?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm i don't think we need to "fuzz" so to speak, and the external/internal distinction should be tested in other tests already. as for nesting, we could maybe set up a chaining test for like 1-5 levels of nesting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, that sounds reasonable to me.