MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_clone

Function test_clone

tests/mesh/test-graph.cpp:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void test_clone( const geode::Graph& graph )
141{
142 const auto graph_clone = graph.clone();
143 geode::OpenGeodeGraph graph2{ std::move(
144 *dynamic_cast< geode::OpenGeodeGraph* >( graph_clone.get() ) ) };
145 geode::OpenGeodeMeshException::test(
146 graph2.nb_vertices() == 4, "Graph2 should have 4 vertices" );
147 geode::OpenGeodeMeshException::test(
148 graph2.nb_edges() == 2, "Graph2 should have2 edge2" );
149}
150
151void test_delete_isolated_vertices(
152 const geode::Graph& graph, geode::GraphBuilder& builder )

Callers 1

testFunction · 0.70

Calls 5

testFunction · 0.70
cloneMethod · 0.45
getMethod · 0.45
nb_verticesMethod · 0.45
nb_edgesMethod · 0.45

Tested by

no test coverage detected