Add gosimports (#1205)

This commit is contained in:
Keith Zantow
2022-09-14 13:38:18 -04:00
committed by GitHub
parent 9097614f3b
commit b20310eaf8
217 changed files with 492 additions and 401 deletions
@@ -3,8 +3,9 @@ package cpe
import (
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/stretchr/testify/assert"
"github.com/anchore/syft/syft/pkg"
)
func Test_additionalProducts(t *testing.T) {
+2 -1
View File
@@ -3,8 +3,9 @@ package cpe
import (
"strings"
"github.com/anchore/syft/syft/pkg"
"github.com/facebookincubator/nvdtools/wfn"
"github.com/anchore/syft/syft/pkg"
)
const jenkinsName = "jenkins"
+2 -1
View File
@@ -3,8 +3,9 @@ package cpe
import (
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/stretchr/testify/assert"
"github.com/anchore/syft/syft/pkg"
)
func Test_disallowJenkinsServerCPEForPluginPackage(t *testing.T) {
+2 -1
View File
@@ -7,9 +7,10 @@ import (
"sort"
"strings"
"github.com/facebookincubator/nvdtools/wfn"
"github.com/anchore/syft/internal"
"github.com/anchore/syft/syft/pkg"
"github.com/facebookincubator/nvdtools/wfn"
)
func newCPE(product, vendor, version, targetSW string) *wfn.Attributes {
@@ -6,10 +6,11 @@ import (
"strings"
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/scylladb/go-set"
"github.com/scylladb/go-set/strset"
"github.com/stretchr/testify/assert"
"github.com/anchore/syft/syft/pkg"
)
func TestGeneratePackageCPEs(t *testing.T) {
+2 -1
View File
@@ -3,9 +3,10 @@ package cpe
import (
"strings"
"github.com/scylladb/go-set/strset"
"github.com/anchore/syft/internal"
"github.com/anchore/syft/syft/pkg"
"github.com/scylladb/go-set/strset"
)
var (
+2 -1
View File
@@ -4,8 +4,9 @@ import (
"strings"
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/stretchr/testify/assert"
"github.com/anchore/syft/syft/pkg"
)
func Test_productsFromArtifactAndGroupIDs(t *testing.T) {