go-sqlcmd
go-sqlcmd copied to clipboard
The TestCmd pattern does not provide functionality to validate output
Currently the Testcmd function just executes a command, but doesn't allow for further verification that the output generated was expected
cmdparser.TestSetup(t)
cmdparser.TestCmd[*AddEndpoint]()
cmdparser.TestCmd[*AddContext]("--endpoint endpoint")
cmdparser.TestCmd[*UseContext]("--name context")
Provide a pattern that enables TestCmd to validated the output was as expected, maybe an array/slice of RegExs that must validate?