Skip to content

Commit

Permalink
add ignoreStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
issacto committed Jun 23, 2023
1 parent 1f3599c commit 32794d1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,14 @@ public List<String> getParsedTestSuiteLines(BufferedReader testSuiteReader,

if (!verifyInProgress && expectMockArguments
&& CobolVerbs.isStartOrEndCobolVerb(testSuiteToken)) {
// In this case we expected cobol verbs and stop counting arguments
// NEW: In this case we expected cobol verbs and stop counting arguments
// update the keyword as fieldname was assumed
keyword = Keywords.getKeywordFor(testSuiteToken, false);
expectMockArguments = false;
expectUsing = false;
// System.out.println("TESTING");
// System.out.println(testSuiteToken);
// System.out.println(keyword.keywordAction());
ignoreCobolStatementAndFieldNameKeyAction = true;
handleEndOfMockStatement(testSuiteReader, testSuiteToken, previousLineContainsArgument);
testSuiteToken = getNextTokenFromTestSuite(testSuiteReader);
previousLineContainsArgument=false;
Expand Down Expand Up @@ -384,6 +383,9 @@ public List<String> getParsedTestSuiteLines(BufferedReader testSuiteReader,
if (testSuiteToken.endsWith(","))
break;
}
if (!verifyInProgress) {
ignoreCobolStatementAndFieldNameKeyAction = true;
}
previousLineContainsArgument = currentLineContainsArgument;
}

Expand Down

0 comments on commit 32794d1

Please sign in to comment.