Skip to content

Commit d61fd1f

Browse files
Added unit test cases
1 parent 63ff7f2 commit d61fd1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/commands/scan_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,3 +2442,6 @@ func Test_CreateScanWithSbomFlag(t *testing.T) {
24422442

24432443
assert.ErrorContains(t, err, "Failed creating a scan: Input in bad format: failed to read file:")
24442444
}
2445+
func Test_CreateScanWithIgnorePolicyFlag(t *testing.T) {
2446+
execCmdNilAssertion(t, "scan", "create", "--project-name", "MOCK", "-s", "data/sources.zip", "--branch", "dummy_branch", "--ignore-policy")
2447+
}

0 commit comments

Comments
 (0)