Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin committed Apr 18, 2024
1 parent b07aeed commit 8e6cf99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ import (
"github.com/liamg/memoryfs"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

builtinrego "github.com/aquasecurity/trivy-checks/pkg/rego"
)

func init() {
builtinrego.RegisterBuiltins()
}

func getFileName(fpath string, info os.FileInfo, typePolicy bool) string {
pathParts := strings.Split(fpath, filepath.FromSlash("/"))
fileName := info.Name()
Expand Down

0 comments on commit 8e6cf99

Please sign in to comment.