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

Function test

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

Source from the content-addressed store, hash-verified

159}
160
161void test()
162{
163 geode::OpenGeodeMeshLibrary::initialize();
164 auto graph =
165 geode::Graph::create( geode::OpenGeodeGraph::impl_name_static() );
166 auto builder = geode::GraphBuilder::create( *graph );
167
168 test_create_vertices( *graph, *builder );
169 test_create_edges( *graph, *builder );
170 test_io( *graph, absl::StrCat( "test.", graph->native_extension() ) );
171 test_backward_io( absl::StrCat(
172 geode::DATA_PATH, "test_v7.", graph->native_extension() ) );
173
174 test_delete_edge( *graph, *builder );
175 test_clone( *graph );
176 test_delete_isolated_vertices( *graph, *builder );
177
178 const auto default_graph = geode::Graph::create();
179 geode::OpenGeodeMeshException::test(
180 default_graph->impl_name() == geode::OpenGeodeGraph::impl_name_static(),
181 "Default type for Graph should be OpenGeodeGraph" );
182}
183
184OPENGEODE_TEST( "graph" )

Callers 6

test_create_verticesFunction · 0.70
test_create_edgesFunction · 0.70
test_delete_edgeFunction · 0.70
test_backward_ioFunction · 0.70
test_cloneFunction · 0.70

Calls 11

initializeFunction · 0.85
test_create_verticesFunction · 0.70
test_create_edgesFunction · 0.70
test_ioFunction · 0.70
test_backward_ioFunction · 0.70
test_delete_edgeFunction · 0.70
test_cloneFunction · 0.70
impl_name_staticFunction · 0.50
native_extensionMethod · 0.45
impl_nameMethod · 0.45

Tested by

no test coverage detected