-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixture injection #5
Milestone
Comments
la10736
pushed a commit
that referenced
this issue
Apr 5, 2019
la10736
pushed a commit
that referenced
this issue
Apr 17, 2019
la10736
pushed a commit
that referenced
this issue
Apr 18, 2019
TODO
|
la10736
pushed a commit
that referenced
this issue
Apr 19, 2019
la10736
pushed a commit
that referenced
this issue
Apr 19, 2019
la10736
added a commit
that referenced
this issue
Apr 23, 2019
la10736
added a commit
that referenced
this issue
Apr 23, 2019
Fixture should not create a struct that wrap function return value to not fight with
|
la10736
pushed a commit
that referenced
this issue
Apr 30, 2019
la10736
pushed a commit
that referenced
this issue
Apr 30, 2019
la10736
added a commit
that referenced
this issue
May 1, 2019
la10736
added a commit
that referenced
this issue
May 1, 2019
la10736
added a commit
that referenced
this issue
May 5, 2019
la10736
added a commit
that referenced
this issue
May 5, 2019
… not necessary mut. We maintain both body till #34 is implemented.
la10736
pushed a commit
that referenced
this issue
May 6, 2019
la10736
pushed a commit
that referenced
this issue
May 7, 2019
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Define a
fixture
procedural macro that define a fixture.Input fixture
can be simple functions orshould befixture
functions.Fixture function will returnFixture
wrapper that can be nested and control value life cycle.We'll associate to fixture two static methods:
get(args)
that return exactly what the original function returnsdefault()
that returnget()
's result by resolve all arguments as fixturesFixture will execute tear down at the end of the test and not when fixture value will be dropped.We leave teardown implementation for next release and a new ticket. Maybe
get
anddefault
will return a tuple instead a wrapper andFixture
will be atrait
implemented on that tuples.Note: We not use a wrapper for fixture return type to not go deep in the
impl
resolution hell. By now struct cannot wrap any function return type.The text was updated successfully, but these errors were encountered: