| 189 | } |
| 190 | |
| 191 | void test() |
| 192 | { |
| 193 | geode::OpenGeodeModelLibrary::initialize(); |
| 194 | geode::Relationships relationships; |
| 195 | const std::array< geode::uuid, 6 > uuids{ |
| 196 | geode::uuid{ "00000000-a9c9-4d4e-8000-0000d0ecddf1" }, |
| 197 | geode::uuid{ "00000000-f620-4987-8000-00007f488d1c" }, |
| 198 | geode::uuid{ "00000000-006a-4fc8-8000-00002970c6fd" }, |
| 199 | geode::uuid{ "00000000-c823-4e3c-8000-0000d5bbf79b" }, |
| 200 | geode::uuid{ "00000000-cb3b-4476-8000-0000b8510242" }, |
| 201 | geode::uuid{ "00000000-e7cb-4888-8000-0000afce2867" } |
| 202 | }; |
| 203 | |
| 204 | // This Relationships do not represent anything. |
| 205 | geode::Logger::info( "There should be 3 warnings next, informing that the " |
| 206 | "relation already exists." ); |
| 207 | add_boundary_relations( relationships, uuids ); |
| 208 | add_internal_relations( relationships, uuids ); |
| 209 | add_items_in_collections( relationships, uuids ); |
| 210 | test_relations( relationships, uuids ); |
| 211 | test_attributes( relationships, uuids ); |
| 212 | |
| 213 | relationships.save_relationships( "." ); |
| 214 | test_io( absl::StrCat( geode::DATA_PATH, "relationships_v12" ), uuids ); |
| 215 | test_io( ".", uuids ); |
| 216 | } |
| 217 | |
| 218 | OPENGEODE_TEST( "relationships" ) |
no test coverage detected