Skip to content

Commit

Permalink
Rename grapher and add test resource
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebFenton committed Oct 18, 2015
1 parent d524c5d commit 3495795
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added simplify/resources/test/obfuscated-example.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import java.util.ArrayList;
import java.util.List;

public class ExecutionGraphPrinter {
public class ExecutionGrapher {

private final static String DOT = "[^a-zA-Z\200-\377_0-9\\s\\p{Punct}]";

public static String print(ExecutionGraph graph) {
public static String graph(ExecutionGraph graph) {
ExecutionNode node = graph.getRoot();
StringBuilder sb = new StringBuilder("digraph {\n");
getGraph(node, graph, sb, new ArrayList<ExecutionNode>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.junit.Test;

public class TestExecutionGraphPrinter {
public class TestExecutionGrapher {

private static ExecutionNode buildNode(int address, String nodeString, String stateString) {
ExecutionNode node = mock(ExecutionNode.class);
Expand Down Expand Up @@ -51,7 +51,7 @@ public void testHasExpectedGraph() {
when(graph.getMethodDescriptor()).thenReturn(METHOD_DESCRIPTOR);
when(graph.getNodeIndex(root)).thenReturn(0);
when(graph.getNodeIndex(child)).thenReturn(0);
String digraph = ExecutionGraphPrinter.print(graph);
String digraph = ExecutionGrapher.graph(graph);

StringBuilder sb = new StringBuilder("digraph {\n");
sb.append("\"@").append(ROOT_ADDRESS).append(".0 :: ").append(ROOT_NODE_STR).append('\n');
Expand Down

0 comments on commit 3495795

Please sign in to comment.