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

Function test_relations

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

Source from the content-addressed store, hash-verified

132}
133
134void test_relations( const geode::Relationships& relations,
135 absl::Span< const geode::uuid > uuids )
136{
137 test_uuid( relations, uuids[0], 3, 0, 1, 0, 0, 1 );
138 test_uuid( relations, uuids[1], 1, 1, 1, 0, 0, 1 );
139 test_uuid( relations, uuids[2], 0, 2, 0, 1, 0, 1 );
140 test_uuid( relations, uuids[3], 1, 1, 0, 0, 0, 1 );
141 test_uuid( relations, uuids[4], 0, 0, 0, 0, 5, 0 );
142 test_uuid( relations, uuids[5], 0, 1, 0, 1, 0, 1 );
143 geode::OpenGeodeModelException::test(
144 relations.is_boundary( uuids[1], uuids[0] ),
145 "uuids[0] should be boundary of uuids[1]" );
146 geode::OpenGeodeModelException::test(
147 !relations.is_boundary( uuids[0], uuids[1] ),
148 "uuids[0] should not be boundary of uuids[1]" );
149 geode::OpenGeodeModelException::test(
150 relations.is_internal( uuids[2], uuids[0] ),
151 "uuids[0] should be internal of uuids[1]" );
152 geode::OpenGeodeModelException::test(
153 relations.is_item( uuids[0], uuids[4] ),
154 "uuids[0] should be item of uuids[4]" );
155}
156
157void test_attributes( const geode::Relationships& relations,
158 absl::Span< const geode::uuid > uuids )

Callers 2

test_ioFunction · 0.85
testFunction · 0.85

Calls 5

test_uuidFunction · 0.85
testFunction · 0.70
is_boundaryMethod · 0.45
is_internalMethod · 0.45
is_itemMethod · 0.45

Tested by

no test coverage detected