mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
Fix go fmt issue in static analysis
Signed-off-by: Alan Pope <alan.pope@anchore.com>
This commit is contained in:
parent
42c6259d4b
commit
91c5c850ea
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func TestDotnetCsprojCataloger(t *testing.T) {
|
func TestDotnetCsprojCataloger(t *testing.T) {
|
||||||
fixture := "test-fixtures/weatherforecast-steeltoe"
|
fixture := "test-fixtures/weatherforecast-steeltoe"
|
||||||
|
|
||||||
expectedLocation := file.NewLocation("Sample.csproj")
|
expectedLocation := file.NewLocation("Sample.csproj")
|
||||||
fixtureLocationSet := file.NewLocationSet(expectedLocation)
|
fixtureLocationSet := file.NewLocationSet(expectedLocation)
|
||||||
|
|
||||||
@ -79,10 +79,10 @@ func TestDotnetCsprojCataloger_GlopsMatch(t *testing.T) {
|
|||||||
PURL: "pkg:nuget/Steeltoe.Common.Hosting@3.2.%2A",
|
PURL: "pkg:nuget/Steeltoe.Common.Hosting@3.2.%2A",
|
||||||
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
||||||
Metadata: pkg.DotnetDepsEntry{
|
Metadata: pkg.DotnetDepsEntry{
|
||||||
Name: "Steeltoe.Common.Hosting",
|
Name: "Steeltoe.Common.Hosting",
|
||||||
Version: "3.2.*",
|
Version: "3.2.*",
|
||||||
Path: ".",
|
Path: ".",
|
||||||
Sha512: "",
|
Sha512: "",
|
||||||
HashPath: "",
|
HashPath: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -95,10 +95,10 @@ func TestDotnetCsprojCataloger_GlopsMatch(t *testing.T) {
|
|||||||
PURL: "pkg:nuget/Steeltoe.Management.EndpointCore@3.2.%2A",
|
PURL: "pkg:nuget/Steeltoe.Management.EndpointCore@3.2.%2A",
|
||||||
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
||||||
Metadata: pkg.DotnetDepsEntry{
|
Metadata: pkg.DotnetDepsEntry{
|
||||||
Name: "Steeltoe.Management.EndpointCore",
|
Name: "Steeltoe.Management.EndpointCore",
|
||||||
Version: "3.2.*",
|
Version: "3.2.*",
|
||||||
Path: ".",
|
Path: ".",
|
||||||
Sha512: "",
|
Sha512: "",
|
||||||
HashPath: "",
|
HashPath: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -111,10 +111,10 @@ func TestDotnetCsprojCataloger_GlopsMatch(t *testing.T) {
|
|||||||
PURL: "pkg:nuget/Swashbuckle.AspNetCore@6.2.%2A",
|
PURL: "pkg:nuget/Swashbuckle.AspNetCore@6.2.%2A",
|
||||||
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
Locations: file.NewLocationSet(file.NewLocation("Sample.csproj")),
|
||||||
Metadata: pkg.DotnetDepsEntry{
|
Metadata: pkg.DotnetDepsEntry{
|
||||||
Name: "Swashbuckle.AspNetCore",
|
Name: "Swashbuckle.AspNetCore",
|
||||||
Version: "6.2.*",
|
Version: "6.2.*",
|
||||||
Path: ".",
|
Path: ".",
|
||||||
Sha512: "",
|
Sha512: "",
|
||||||
HashPath: "",
|
HashPath: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user