Skip to content

Commit 844961e

Browse files
committed
review: tests
1 parent 1176d2c commit 844961e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/printers/sarif_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ func TestSarif_Print(t *testing.T) {
6666
assert.Equal(t, expected, buf.String())
6767
}
6868

69-
func TestSarif_EmptyPrint(t *testing.T) {
69+
func TestSarif_Print_empty(t *testing.T) {
7070
buf := new(bytes.Buffer)
7171

7272
printer := NewSarif(buf)
7373

74-
err := printer.Print(make([]result.Issue, 0))
74+
err := printer.Print(nil)
7575
require.NoError(t, err)
7676

7777
expected := `{"version":"2.1.0","$schema":"https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.6.json","runs":[{"tool":{"driver":{"name":"golangci-lint"}},"results":[]}]}

0 commit comments

Comments
 (0)