Skip to content

Commit

Permalink
updated server_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
parvez0 committed Mar 24, 2024
1 parent 60892f4 commit e4132b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/rpc/server/server_test.go
Expand Up @@ -81,6 +81,12 @@ func TestScanServer_Scan(t *testing.T) {
LastModifiedDate: utils.MustTimeParse("2020-01-01T01:01:00Z"),
PublishedDate: utils.MustTimeParse("2001-01-01T01:01:00Z"),
},
Locations: []ftypes.Location{
{
StartLine: 33,
EndLine: 38,
},
},
PrimaryURL: "https://avd.aquasec.com/nvd/cve-2019-0001",
DataSource: &dbTypes.DataSource{
Name: "DOS vulnerabilities",
Expand Down Expand Up @@ -127,6 +133,14 @@ func TestScanServer_Scan(t *testing.T) {
LastModifiedDate: &timestamp.Timestamp{
Seconds: 1577840460,
},
Locations: &common.Locations{
Location: []*common.Location{
{
StartLine: 33,
EndLine: 38,
},
},
},
PublishedDate: &timestamp.Timestamp{
Seconds: 978310860,
},
Expand Down

0 comments on commit e4132b2

Please sign in to comment.