TOOLS-4278 Convert three smallest GoConvey test files to testify - #1061
TOOLS-4278 Convert three smallest GoConvey test files to testify#1061autarch wants to merge 1 commit into
Conversation
Establishes the conventions for the rest of the goconvey -> testify migration: - One top-level Convey means no subtest; multiple become t.Run. A Convey inside a loop is N top-level Conveys, so each case gets its own t.Run. - Nested Conveys that differ only in data collapse into table-driven cases rather than nested subtests. - require by default, assert where continuing gives more useful output. - Direct t.Fatal/t.Errorf assertions become require/assert. - Assertion messages describe the expected behavior, not the failure. Also removes the repo's only cmp.Diff call and its go-cmp import. No behavior change.
8ec968c to
745c978
Compare
Running the tests for this stackTwo flags matter, and without them you will see failures that look like they belong to this migration but don't. Pass
|

Establishes the conventions for the rest of the goconvey -> testify
migration:
inside a loop is N top-level Conveys, so each case gets its own t.Run.
cases rather than nested subtests.
Also removes the repo's only cmp.Diff call and its go-cmp import.
No behavior change.