allow convert to take stdin (#1570)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2023-02-14 10:03:47 -05:00
committed by GitHub
parent 57a13ae355
commit 9b9a7d6c98
5 changed files with 115 additions and 18 deletions
+2 -7
View File
@@ -10,14 +10,9 @@ import (
"github.com/stretchr/testify/require"
)
func TestConvertCmdFlags(t *testing.T) {
func TestAllFormatsConvertable(t *testing.T) {
assertions := []traitAssertion{
func(tb testing.TB, stdout, _ string, _ int) {
tb.Helper()
if len(stdout) < 1000 {
tb.Errorf("there may not be any report output (len=%d)", len(stdout))
}
},
assertStdoutLengthGreaterThan(1000),
assertSuccessfulReturnCode,
}