integrii / flaggy

Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
The Unlicense
858 stars 30 forks source link

blackbox test: actually assert something #73

Closed marco-m closed 2 years ago

marco-m commented 3 years ago

The helpValues_blackbox_test was not asserting anything. We now intercept stderr and validate that the help output is what is expected.

Note that the added dependency in go.mod github.com/google/go-cmp is used only by the tests.