-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor generator #121
refactor generator #121
Conversation
Pull Request Test Coverage Report for Build 9436791382Details
💛 - Coveralls |
This PR uses commits available in: |
@Antonboom do you think we could merge this one, it would help me to refactor for |
internal/testgen/gen_bool_compare.go
Outdated
Assertion{Fn: "False", Argsf: "foo != foo"}, | ||
) | ||
|
||
invalidAssertionsForTrue := make([]Assertion, 0) |
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.
var
internal/testgen/gen_bool_compare.go
Outdated
) | ||
|
||
invalidAssertionsForTrue := make([]Assertion, 0) | ||
invalidAssertionsForFalse := make([]Assertion, 0) |
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.
var
internal/testgen/gen_bool_compare.go
Outdated
) | ||
} | ||
|
||
sortAssertions(invalidAssertionsForTrue) |
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.
any reason to sort it?
the order of assertions is determined
safe this PR from unrelated changes around generated test files
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 will remove it then
63fab08
to
9cf6c96
Compare
Pull Request Test Coverage Report for Build 9511399411Details
💛 - Coveralls |
I pushed too fast sorry. I will fix other too |
9cf6c96
to
c6c18dd
Compare
Pull Request Test Coverage Report for Build 9513179523Details
💛 - Coveralls |
c6c18dd
to
8ade9bf
Compare
I resolved all your comments @Antonboom please check and review. The number of changes is then very limited |
Pull Request Test Coverage Report for Build 9513220198Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9525679838Details
💛 - Coveralls |
These commits were part of
#107and #111 that were suggested changes were discarded, but the refactoring made in each PR could be kept as discussed here