Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Sep 18, 2023
1 parent a0dd050 commit 6861afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xray/commands/audit/jas/sast/sastscanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ func TestGroupResultsByLocation(t *testing.T) {
// With similar groups
runs: []*sarif.Run{
utils.CreateRunWithDummyResults(
utils.CreateDummyResultWithOneLocation("file", 1, 2, 3, 4, "snippet", "rule1", "info"),
utils.CreateDummyResultWithOneLocation("file", 1, 2, 3, 4, "snippet", "rule1", "info").WithCodeFlows([]*sarif.CodeFlow{
utils.CreateDummyCodeFlow(utils.CreateDummyThreadFlow(
utils.CreateDummyLocation("other", 0, 0, 0, 0, "other-snippet"),
Expand All @@ -132,11 +131,12 @@ func TestGroupResultsByLocation(t *testing.T) {
}),
utils.CreateDummyResultWithOneLocation("file", 1, 2, 3, 4, "snippet", "rule1", "info").WithCodeFlows([]*sarif.CodeFlow{
utils.CreateDummyCodeFlow(utils.CreateDummyThreadFlow(
utils.CreateDummyLocation("other2", 1, 1, 1, 1, "other-snippet2"),
utils.CreateDummyLocation("other2", 1, 1, 1, 1, "other-snippet"),
utils.CreateDummyLocation("file", 1, 2, 3, 4, "snippet"),
)),
}),
utils.CreateDummyResultWithOneLocation("file", 5, 6, 7, 8, "snippet", "rule1", "info"),
utils.CreateDummyResultWithOneLocation("file", 1, 2, 3, 4, "snippet", "rule1", "info"),
),
},
expectedOutput: []*sarif.Run{
Expand All @@ -147,7 +147,7 @@ func TestGroupResultsByLocation(t *testing.T) {
utils.CreateDummyLocation("file", 1, 2, 3, 4, "snippet"),
)),
utils.CreateDummyCodeFlow(utils.CreateDummyThreadFlow(
utils.CreateDummyLocation("other2", 1, 1, 1, 1, "other-snippet2"),
utils.CreateDummyLocation("other2", 1, 1, 1, 1, "other-snippet"),
utils.CreateDummyLocation("file", 1, 2, 3, 4, "snippet"),
)),
}),
Expand Down

0 comments on commit 6861afb

Please sign in to comment.