Commit graph

9 commits

Author SHA1 Message Date
umarcor
6675f2ae25 args_test: add TestArgs_Nil 2021-12-08 20:32:03 +01:00
umarcor
a2f84c8568 args_test: use sub-tests for grouping based on the validator 2021-12-08 20:32:03 +01:00
umarcor
0807dcbb57 args_test: style 2021-12-08 20:32:03 +01:00
umarcor
c9b43b7eae add expectError helper function to args_test 2021-12-08 20:32:03 +01:00
umarcor
cf1c00d205 feat: generalize ValidArgs; use it implicitly with any validator (#841) 2021-12-08 20:32:02 +01:00
Nelz
45e521ea93
enable composing PositionalArgs (#896)
* enable composing PositionalArgs
* ExactValidArgs slated for removal
* tests and docs
* rename to MatchAll
2021-12-07 15:38:00 -07:00
Unai Martinez-Corral
9e1d6f1c2a
args_test: add helper functions (#1426)
* args_test: add helper function expectSuccess
* args_test: add helper function getCommand
* args_test: add additional helper functions
* noArgsWithArgs
* validWithInvalidArgs
* minimumNArgsWithLessArgs
* maximumNArgsWithMoreArgs
* exactArgsWithInvalidCount
* rangeArgsWithInvalidCount
2021-11-16 15:20:18 -07:00
bpdunni
f619abc1d7 Added ExactValidArgs (#765) 2018-10-21 10:01:21 -04:00
Albert Nigmatzianov
18eefcde17 Add tests for args.go 2017-11-09 07:56:43 +01:00