mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
fix quiet flag (#2081)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,13 @@ func assertNotInOutput(data string) traitAssertion {
|
||||
}
|
||||
}
|
||||
|
||||
func assertNoStderr(tb testing.TB, _, stderr string, _ int) {
|
||||
tb.Helper()
|
||||
if len(stderr) > 0 {
|
||||
tb.Errorf("expected stderr to be empty, but got %q", stderr)
|
||||
}
|
||||
}
|
||||
|
||||
func assertInOutput(data string) traitAssertion {
|
||||
return func(tb testing.TB, stdout, stderr string, _ int) {
|
||||
tb.Helper()
|
||||
|
||||
Reference in New Issue
Block a user