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

Function test

tests/model/test-relationships.cpp:191–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void 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
218OPENGEODE_TEST( "relationships" )

Callers 3

test_uuidFunction · 0.70
test_relationsFunction · 0.70
test_attributesFunction · 0.70

Calls 9

initializeFunction · 0.85
infoFunction · 0.85
add_boundary_relationsFunction · 0.85
add_internal_relationsFunction · 0.85
add_items_in_collectionsFunction · 0.85
test_relationsFunction · 0.85
test_attributesFunction · 0.85
save_relationshipsMethod · 0.80
test_ioFunction · 0.70

Tested by

no test coverage detected