Skip to content

Commit

Permalink
nit: fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parvez0 committed Apr 29, 2024
1 parent 318a010 commit bac7a6c
Showing 1 changed file with 12 additions and 46 deletions.
58 changes: 12 additions & 46 deletions pkg/rpc/convert_test.go
Expand Up @@ -53,12 +53,6 @@ func TestConvertToRpcPkgs(t *testing.T) {
Digest: "sha256:6a428f9f83b0a29f1fdd2ccccca19a9bab805a925b8eddf432a5a3d3da04afbc",
DiffID: "sha256:39982b2a789afc156fff00c707d0ff1c6ab4af8f1666a8df4787714059ce24e7",
},
Locations: []ftypes.Location{
{
StartLine: 10,
EndLine: 12,
},
},
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2",
Indirect: true,
},
Expand Down Expand Up @@ -90,14 +84,6 @@ func TestConvertToRpcPkgs(t *testing.T) {
Digest: "sha256:6a428f9f83b0a29f1fdd2ccccca19a9bab805a925b8eddf432a5a3d3da04afbc",
DiffId: "sha256:39982b2a789afc156fff00c707d0ff1c6ab4af8f1666a8df4787714059ce24e7",
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 10,
EndLine: 12,
},
},
},
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2",
Indirect: true,
},
Expand Down Expand Up @@ -149,14 +135,6 @@ func TestConvertFromRpcPkgs(t *testing.T) {
Digest: "sha256:6a428f9f83b0a29f1fdd2ccccca19a9bab805a925b8eddf432a5a3d3da04afbc",
DiffId: "sha256:39982b2a789afc156fff00c707d0ff1c6ab4af8f1666a8df4787714059ce24e7",
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 10,
EndLine: 12,
},
},
},
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2",
Indirect: true,
},
Expand Down Expand Up @@ -190,12 +168,6 @@ func TestConvertFromRpcPkgs(t *testing.T) {
},
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2",
Indirect: true,
Locations: []ftypes.Location{
{
StartLine: 10,
EndLine: 12,
},
},
},
},
},
Expand Down Expand Up @@ -291,12 +263,10 @@ func TestConvertToRpcVulns(t *testing.T) {
Digest: "sha256:154ad0735c360b212b167f424d33a62305770a1fcfb6363882f5c436cfbd9812",
DiffId: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
Locations: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
},
PrimaryUrl: "https://avd.aquasec.com/nvd/CVE-2019-0001",
Expand Down Expand Up @@ -357,12 +327,10 @@ func TestConvertToRpcVulns(t *testing.T) {
Digest: "sha256:154ad0735c360b212b167f424d33a62305770a1fcfb6363882f5c436cfbd9812",
DiffId: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
Locations: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
},
DataSource: &common.DataSource{
Expand Down Expand Up @@ -430,12 +398,10 @@ func TestConvertFromRPCResults(t *testing.T) {
Digest: "sha256:154ad0735c360b212b167f424d33a62305770a1fcfb6363882f5c436cfbd9812",
DiffId: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
Locations: []*common.Location{
{
StartLine: 15,
EndLine: 20,
},
},
PrimaryUrl: "https://avd.aquasec.com/nvd/CVE-2019-0001",
Expand Down

0 comments on commit bac7a6c

Please sign in to comment.