| 132 | } |
| 133 | |
| 134 | void 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 | |
| 157 | void test_attributes( const geode::Relationships& relations, |
| 158 | absl::Span< const geode::uuid > uuids ) |
no test coverage detected