| 159 | } |
| 160 | |
| 161 | void 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 | |
| 184 | OPENGEODE_TEST( "graph" ) |
no test coverage detected