mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-05 20:40:16 -08:00
feat: replace TinyGo with standard Go for WebAssembly modules (#8496)
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/aquasecurity/trivy/pkg/fanal/artifact"
|
||||
ftypes "github.com/aquasecurity/trivy/pkg/fanal/types"
|
||||
"github.com/aquasecurity/trivy/pkg/types"
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ func TestSBOM(t *testing.T) {
|
||||
golden: "testdata/centos-7.json.golden",
|
||||
override: func(t *testing.T, want, got *types.Report) {
|
||||
want.ArtifactName = "testdata/fixtures/sbom/centos-7-cyclonedx.json"
|
||||
want.ArtifactType = artifact.TypeCycloneDX
|
||||
want.ArtifactType = ftypes.TypeCycloneDX
|
||||
|
||||
require.Len(t, got.Results, 1)
|
||||
want.Results[0].Target = "testdata/fixtures/sbom/centos-7-cyclonedx.json (centos 7.6.1810)"
|
||||
@@ -87,7 +87,7 @@ func TestSBOM(t *testing.T) {
|
||||
golden: "testdata/centos-7.json.golden",
|
||||
override: func(t *testing.T, want, got *types.Report) {
|
||||
want.ArtifactName = "testdata/fixtures/sbom/centos-7-cyclonedx.intoto.jsonl"
|
||||
want.ArtifactType = artifact.TypeCycloneDX
|
||||
want.ArtifactType = ftypes.TypeCycloneDX
|
||||
|
||||
require.Len(t, got.Results, 1)
|
||||
want.Results[0].Target = "testdata/fixtures/sbom/centos-7-cyclonedx.intoto.jsonl (centos 7.6.1810)"
|
||||
@@ -108,7 +108,7 @@ func TestSBOM(t *testing.T) {
|
||||
golden: "testdata/centos-7.json.golden",
|
||||
override: func(t *testing.T, want, got *types.Report) {
|
||||
want.ArtifactName = "testdata/fixtures/sbom/centos-7-spdx.txt"
|
||||
want.ArtifactType = artifact.TypeSPDX
|
||||
want.ArtifactType = ftypes.TypeSPDX
|
||||
|
||||
require.Len(t, got.Results, 1)
|
||||
want.Results[0].Target = "testdata/fixtures/sbom/centos-7-spdx.txt (centos 7.6.1810)"
|
||||
@@ -124,7 +124,7 @@ func TestSBOM(t *testing.T) {
|
||||
golden: "testdata/centos-7.json.golden",
|
||||
override: func(t *testing.T, want, got *types.Report) {
|
||||
want.ArtifactName = "testdata/fixtures/sbom/centos-7-spdx.json"
|
||||
want.ArtifactType = artifact.TypeSPDX
|
||||
want.ArtifactType = ftypes.TypeSPDX
|
||||
|
||||
require.Len(t, got.Results, 1)
|
||||
want.Results[0].Target = "testdata/fixtures/sbom/centos-7-spdx.json (centos 7.6.1810)"
|
||||
|
||||
Reference in New Issue
Block a user