Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 3, 2023
1 parent 306e9f3 commit 719a5e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xray/utils/resultwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ func TestGetXrayIssueLocationIfValidExists(t *testing.T) {
run: CreateRunWithDummyResults().WithInvocations([]*sarif.Invocation{invocation}),
expectedOutput: sarif.NewLocation().WithPhysicalLocation(sarif.NewPhysicalLocation().WithArtifactLocation(sarif.NewArtifactLocation().WithUri("file://" + filepath.Join(testDir, "go.mod")))),
},
{
name: "One descriptor information - no invocation",
tech: coreutils.Go,
run: CreateRunWithDummyResults(),
expectedOutput: sarif.NewLocation().WithPhysicalLocation(sarif.NewPhysicalLocation().WithArtifactLocation(sarif.NewArtifactLocation().WithUri("file://go.mod"))),
},
{
name: "Multiple descriptor information",
tech: coreutils.Gradle,
Expand Down

0 comments on commit 719a5e8

Please sign in to comment.