mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
feat: move file patterns to a global level to be able to use it on any analyzer (#2539)
This commit is contained in:
@@ -92,7 +92,10 @@ func TestManager_Register(t *testing.T) {
|
||||
}()
|
||||
|
||||
// Confirm the analyzer is registered
|
||||
got := analyzer.NewAnalyzerGroup("", nil).AnalyzerVersions()
|
||||
a, err := analyzer.NewAnalyzerGroup("", nil, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
got := a.AnalyzerVersions()
|
||||
assert.Equal(t, tt.wantAnalyzerVersions, got)
|
||||
|
||||
// Confirm the post scanner is registered
|
||||
|
||||
Reference in New Issue
Block a user