Skip to content

Commit

Permalink
Test implicit entry point feature (#158)
Browse files Browse the repository at this point in the history
This passing test case has no explicit entry point.
  • Loading branch information
yiming-tang-cs authored and khatchad committed Jan 16, 2018
1 parent f2b983f commit 4ecfd96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package p;

import java.util.stream.IntStream;

public class A {
public static void main(String[] args) {
IntStream.of(1).count();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -711,4 +711,11 @@ public void testField() throws Exception {
false, EnumSet.of(TransformationAction.CONVERT_TO_PARALLEL), PreconditionSuccess.P1,
Refactoring.CONVERT_SEQUENTIAL_STREAM_TO_PARALLEL, RefactoringStatus.OK, Collections.emptySet()));
}

public void testImplicitEntryPoint() throws Exception {
helper(new StreamAnalysisExpectedResult("IntStream.of(1)", EnumSet.of(ExecutionMode.SEQUENTIAL),
EnumSet.of(Ordering.ORDERED), false, false, false, EnumSet.of(TransformationAction.CONVERT_TO_PARALLEL),
PreconditionSuccess.P2, Refactoring.CONVERT_SEQUENTIAL_STREAM_TO_PARALLEL, RefactoringStatus.OK,
Collections.emptySet()));
}
}

0 comments on commit 4ecfd96

Please sign in to comment.