MCPcopy Create free account
hub / github.com/LFYSec/MScan / testSimpleGraph

Method testSimpleGraph

src/test/java/pascal/taie/util/graph/GraphTest.java:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 @Test
54 void testSimpleGraph() {
55 Graph<Integer> g = readGraph("src/test/resources/util/graph-simple.txt");
56 assertEquals(6, g.getNumberOfNodes());
57 assertTrue(g.hasNode(1));
58 assertFalse(g.hasNode(10));
59 assertTrue(g.hasEdge(3, 6));
60 }
61
62 @Test
63 void testSimpleGraphCopy() {

Callers

nothing calls this directly

Calls 4

readGraphMethod · 0.95
getNumberOfNodesMethod · 0.80
hasNodeMethod · 0.65
hasEdgeMethod · 0.65

Tested by

no test coverage detected