Correcting Testcases.
The "protection error" (ctc F104) is parsed by the Parser but there is no dedicated test for the message, leaving a hole in the test assertions.
Corrected number of overall warnings to 10, and updated the indexes for the new tests.
@@ -24,7 +24,7 @@ class TaskingVxCompilerParserTest extends AbstractParserTest {
@Override
protected void assertThatIssuesArePresent(final Report warnings, final SoftAssertions softly) {
- softly.assertThat(warnings).hasSize(9);
+ softly.assertThat(warnings).hasSize(10);
softly.assertThat(warnings.get(0))
.hasSeverity(Severity.WARNING_NORMAL)
@@ -75,14 +75,14 @@ class TaskingVxCompilerParserTest extends AbstractParserTest {
.hasLineEnd(42)
.hasMessage("start of current function definition")
.hasFileName("BswM_UserCallouts.c");
- softly.assertThat(warnings.get(7))
+ softly.assertThat(warnings.get(8))
.hasSeverity(Severity.WARNING_HIGH)
.hasCategory(ERROR_CATEGORY)
.hasLineStart(242)
.hasLineEnd(242)
.hasMessage("invalid conversion from \"struct const *\" to \"signed int *\"")
.hasFileName("C:/Projects/a/b/c/BRBL.c");
- softly.assertThat(warnings.get(8))
+ softly.assertThat(warnings.get(9))
.hasSeverity(Severity.WARNING_NORMAL)
.hasCategory(WARNING_CATEGORY)
.hasLineStart(242)
