Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
issacto committed Jun 23, 2023
1 parent c2b4199 commit ed4fccf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ public List<String> getParsedTestSuiteLines(BufferedReader testSuiteReader,
continue;
}

if (!verifyInProgress && expectMockArguments
if (expectMockArguments
&& CobolVerbs.isStartOrEndCobolVerb(testSuiteToken)) {
// 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;
handleEndOfMockStatement(testSuiteReader, testSuiteToken, false);
testSuiteToken = getNextTokenFromTestSuite(testSuiteReader);
continue;
Expand Down Expand Up @@ -370,8 +371,7 @@ public List<String> getParsedTestSuiteLines(BufferedReader testSuiteReader,
currentMock.addArgument(getCallArgument(currentMockArgument, testSuiteToken));

currentMockArgument = "";
if (testSuiteToken.endsWith(","))
break;

}
expectUsing = false;
if (!verifyInProgress) {
Expand Down

0 comments on commit ed4fccf

Please sign in to comment.