github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/test/cli/symlink_test.go (about) 1 package cli 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func Test_RequestedPathIncludesSymlink(t *testing.T) { 10 // path contains a symlink 11 path := "test-fixtures/image-pkg-coverage/pkgs/java/example-java-app-maven-0.1.0.jar" 12 _, stdout, _ := runSyft(t, nil, "scan", path) 13 assert.Contains(t, stdout, "example-java-app-maven") 14 }