mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
refactor: use google/wire for cache (#7024)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/aquasecurity/trivy/pkg/cache"
|
||||
"github.com/aquasecurity/trivy/pkg/commands/clean"
|
||||
"github.com/aquasecurity/trivy/pkg/flag"
|
||||
)
|
||||
@@ -100,6 +101,9 @@ func TestRun(t *testing.T) {
|
||||
GlobalOptions: flag.GlobalOptions{
|
||||
CacheDir: tempDir,
|
||||
},
|
||||
CacheOptions: flag.CacheOptions{
|
||||
CacheBackend: string(cache.TypeFS),
|
||||
},
|
||||
CleanOptions: tt.cleanOpts,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user