Skip to content

Commit

Permalink
Log entrypoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Feb 22, 2024
1 parent 4355cd1 commit e646626
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
import com.ibm.wala.util.CancelException;
import java.io.IOException;
import java.util.Collections;
import java.util.stream.StreamSupport;
import java.util.logging.Logger;
import org.junit.Test;

public class TestCalls extends TestPythonCallGraphShape {

private static final Logger LOGGER = Logger.getLogger(TestCalls.class.getName());

protected static final Object[][] assertionsCalls1 =
new Object[][] {
new Object[] {ROOT, new String[] {"script calls1.py"}},
Expand Down Expand Up @@ -275,9 +277,8 @@ public Void performAnalysis(PropagationCallGraphBuilder builder) throws CancelEx

callGraphBuilder.getOptions().setEntrypoints(entrypoints);

StreamSupport.stream(callGraphBuilder.getOptions().getEntrypoints().spliterator(), false)
.forEach(System.out::println);
System.out.println();
for (Entrypoint ep : callGraphBuilder.getOptions().getEntrypoints())
LOGGER.info(() -> "Using entrypoint: " + ep.getMethod().getDeclaringClass().getName() + ".");

CallGraph callGraph = callGraphBuilder.makeCallGraph(callGraphBuilder.getOptions());

Expand Down

0 comments on commit e646626

Please sign in to comment.