File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
utbot-framework/src/test/kotlin/org/utbot/sarif Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ class SarifReportTest {
86
86
assert (location.region.startLine == 1337 )
87
87
assert (relatedLocation.artifactLocation.uri.contains(" MainTest.java" ))
88
88
assert (relatedLocation.region.startLine == 1 )
89
+ assert (relatedLocation.region.startColumn == 1 )
89
90
}
90
91
91
92
@Test
@@ -158,6 +159,7 @@ class SarifReportTest {
158
159
}
159
160
assert (codeFlowPhysicalLocations[0 ].artifactLocation.uri.contains(" MainTest.java" ))
160
161
assert (codeFlowPhysicalLocations[0 ].region.startLine == 3 )
162
+ assert (codeFlowPhysicalLocations[0 ].region.startColumn == 7 )
161
163
}
162
164
163
165
@Test
@@ -181,6 +183,7 @@ class SarifReportTest {
181
183
}
182
184
assert (codeFlowPhysicalLocations[0 ].artifactLocation.uri.contains(" MainTest.java" ))
183
185
assert (codeFlowPhysicalLocations[0 ].region.startLine == 4 )
186
+ assert (codeFlowPhysicalLocations[0 ].region.startColumn == 5 )
184
187
}
185
188
186
189
// internal
@@ -217,7 +220,7 @@ class SarifReportTest {
217
220
private val generatedTestsCodeMain = """
218
221
public void testMain_ThrowArithmeticException() {
219
222
Main main = new Main();
220
- main.main(0);
223
+ main.main(0); // shift for `startColumn` == 7
221
224
}
222
225
""" .trimIndent()
223
226
You can’t perform that action at this time.
0 commit comments