mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
refactor: move result structs under types (#1696)
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
ptypes "github.com/aquasecurity/go-dep-parser/pkg/types"
|
||||
dbTypes "github.com/aquasecurity/trivy-db/pkg/types"
|
||||
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/vulnerability"
|
||||
"github.com/aquasecurity/trivy/pkg/report"
|
||||
"github.com/aquasecurity/trivy/pkg/types"
|
||||
"github.com/aquasecurity/trivy/rpc/common"
|
||||
"github.com/aquasecurity/trivy/rpc/scanner"
|
||||
@@ -345,7 +344,7 @@ func TestConvertFromRPCResults(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
want []report.Result
|
||||
want []types.Result
|
||||
}{
|
||||
{
|
||||
name: "happy path",
|
||||
@@ -388,7 +387,7 @@ func TestConvertFromRPCResults(t *testing.T) {
|
||||
},
|
||||
}},
|
||||
},
|
||||
want: []report.Result{
|
||||
want: []types.Result{
|
||||
{
|
||||
Target: "alpine:3.10",
|
||||
Type: fos.Alpine,
|
||||
@@ -468,7 +467,7 @@ func TestConvertFromRPCResults(t *testing.T) {
|
||||
},
|
||||
}},
|
||||
},
|
||||
want: []report.Result{
|
||||
want: []types.Result{
|
||||
{
|
||||
Target: "alpine:3.10",
|
||||
Type: fos.Alpine,
|
||||
|
||||
Reference in New Issue
Block a user