Skip to content

Incorrect region in SARIF report #460

Description

@mmvpm

Description

Sometimes we have such region in SARIF report:

"region" : {
"startLine" : 1,
"startColumn" : 1
}

But the first line of the source code contains the package name or class name. So there can't be an unchecked exception there.

To Reproduce

Steps to reproduce the behavior:

  1. Run test generation using IDEA plugin:
publicclassUtil {
publicstaticintmultiply(intx, inty) {
returnMath.multiplyExact(x, y);
}
}
  1. Open generated SARIF report
  2. Find the incorrect region

Expected behavior

The SARIF report contains only correct regions.

Visual proofs

image

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions