nim-confutils/confutils/cli_parsing_fuzzer.nim

16 lines
370 B
Nim

import
strutils,
stew/byteutils, testutils/fuzzing,
../confutils
template fuzzCliParsing*(Conf: type) =
test:
block:
try:
let cfg = Conf.load(cmdLine = split(fromBytes(string, payload)),
printUsage = false,
quitOnFailure = false)
except ConfigurationError as err:
discard