mirror of
https://github.com/anchore/syft
synced 2024-11-12 23:27:20 +00:00
4c20a74d2f
* replace packages command with scan Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests for packages alias Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update comments with referenes to the packages command Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename valiadte args function Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
14 lines
348 B
Go
14 lines
348 B
Go
package cli
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_RequestedPathIncludesSymlink(t *testing.T) {
|
|
// path contains a symlink
|
|
path := "test-fixtures/image-pkg-coverage/pkgs/java/example-java-app-maven-0.1.0.jar"
|
|
_, stdout, _ := runSyft(t, nil, "scan", path)
|
|
assert.Contains(t, stdout, "example-java-app-maven")
|
|
}
|