Fix go fmt issue in static analysis

Signed-off-by: Alan Pope <alan.pope@anchore.com>
This commit is contained in:
Alan Pope 2025-08-26 16:02:04 +01:00
parent 42c6259d4b
commit 91c5c850ea

View File

@ -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: "",
}, },
}, },