You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go. Assertions for structures should be accurate #1809
Now tests generated for Go structures have assertNotEquals for the whole structure.
Actual and expected structures have only one different field.
If some other field is different in actual and expected structures, the test will pass too.
Context
for example: utbot-go/go-samples/simple/supported_types_go_ut_test.go see TestStructWithNanByUtGoFuzzer
Activity
alisevych commentedon Mar 2, 2023
Can we identify which fields has changed from initial ones?
Then can make assertNotEquals for them only.
Other possible solutions are:
alisevych commentedon Mar 2, 2023
During discussion of the issue @Markoutte suggested an assertion approach, that can be useful for all languages: