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

Method testVertexContainment

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

Source from the content-addressed store, hash-verified

61 }
62
63 @Test
64 public void testVertexContainment() {
65 // values
66 for(int i = 1; i < 6; i++)
67 assertTrue(undirectedGraph.containsVertex(i));
68 assertFalse(undirectedGraph.containsVertex(-1));
69 // vertices
70 for(int i = 1; i < 6; i++)
71 assertTrue(undirectedGraph.containsVertex(undirectedGraph.getVertex(i)));
72 }
73
74 @Test
75 public void testUndirectedPathSearch() {

Callers

nothing calls this directly

Calls 2

containsVertexMethod · 0.80
getVertexMethod · 0.65

Tested by

no test coverage detected