MCPcopy
hub / github.com/Col-E/Recaf / testIsDirectedRoot

Method testIsDirectedRoot

src/test/java/me/coley/recaf/GraphTest.java:142–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 @Test
143 public void testIsDirectedRoot() {
144 // Not roots: 2, 3, 4, 5
145 for(int i = 2; i < 5; i++)
146 assertFalse(directedGraph.getVertex(i).isRoot());
147 // Roots: 1, 6
148 assertTrue(directedGraph.getVertex(1).isRoot());
149 assertTrue(directedGraph.getVertex(6).isRoot());
150 }
151
152 @Test
153 public void testGetAllRoots() {

Callers

nothing calls this directly

Calls 2

isRootMethod · 0.80
getVertexMethod · 0.65

Tested by

no test coverage detected