From acc528cbf40c42eb112d2ce66c5f778bd4a397fb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 16 Apr 2024 16:35:18 +0200 Subject: tools/syz-linter: check t.Logf/Errorf/Fatalf messages Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf. --- pkg/vcs/vcs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/vcs') diff --git a/pkg/vcs/vcs_test.go b/pkg/vcs/vcs_test.go index aeccb3149..01e1fe7f5 100644 --- a/pkg/vcs/vcs_test.go +++ b/pkg/vcs/vcs_test.go @@ -226,7 +226,7 @@ func TestFileLink(t *testing.T) { for _, test := range tests { link := FileLink(test.URL, test.Hash, test.File, test.Line) if link != test.FileLink { - t.Errorf("Test: %+v\ngot: %v", test, link) + t.Errorf("test: %+v\ngot: %v", test, link) } } } -- cgit mrf-deployment