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
Add edge tests around Provide and Invoke #76
Add edge tests around Provide and Invoke #76
Conversation
1 similar comment
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.
1
@anuptalwalkar can you add something to the PR description for more context? |
constructor := func() (*A, *A, error) { | ||
return &A{}, &A{}, nil | ||
} | ||
require.Error(t, c.Provide(constructor), "provide failed") |
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.
I think this particular test function has only success cases (EndToEndSuccess). Perhaps move this out to a different test.
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.
good point. I will move it out.
8588c6c
to
cc8c6a3
Compare
* rebase for conflicts * moved failure tests into its own test
Added some missing edge cases around provide -