| 625 | } |
| 626 | |
| 627 | void test_corner_collections_ranges( const geode::Section& model, |
| 628 | absl::Span< const geode::uuid > corner_uuids, |
| 629 | absl::Span< const geode::uuid > collection_uuids ) |
| 630 | { |
| 631 | geode::index_t collection_item_count{ 0 }; |
| 632 | for( const auto& collection_item : model.corner_collection_items( |
| 633 | model.corner_collection( collection_uuids[1] ) ) ) |
| 634 | { |
| 635 | collection_item_count++; |
| 636 | geode::OpenGeodeModelException::test( |
| 637 | collection_item.id() == corner_uuids[2] |
| 638 | || collection_item.id() == corner_uuids[3], |
| 639 | "CornerItemRange iteration result is not correct" ); |
| 640 | geode::OpenGeodeModelException::test( |
| 641 | model.is_corner_collection_item( collection_item, |
| 642 | model.corner_collection( collection_uuids[1] ) ), |
| 643 | "Corner should be item of ModelCollection" ); |
| 644 | } |
| 645 | geode::OpenGeodeModelException::test( collection_item_count == 2, |
| 646 | "CornerItemRange should iterates on 2 Corners (Collection 1)" ); |
| 647 | } |
| 648 | |
| 649 | void test_line_collections_ranges( const geode::Section& model, |
| 650 | absl::Span< const geode::uuid > line_uuids, |
no test coverage detected