Skip to content

Commit

Permalink
move pkg analyzer inside the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDatadog committed Jul 25, 2023
1 parent 8a1bb06 commit 6b03699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/analyzer/pkg/apk/apk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ func TestParseApkInfo(t *testing.T) {
wantFiles: files,
},
}
a := alpinePkgAnalyzer{}
for testname, tt := range tests {
t.Run(testname, func(t *testing.T) {
a := alpinePkgAnalyzer{}
read, err := os.Open(tt.path)
require.NoError(t, err)
scanner := bufio.NewScanner(read)
Expand Down

0 comments on commit 6b03699

Please sign in to comment.