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

Function test_corner_collections_ranges

tests/model/test-section.cpp:627–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627void 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
649void test_line_collections_ranges( const geode::Section& model,
650 absl::Span< const geode::uuid > line_uuids,

Callers 1

testFunction · 0.85

Calls 3

testFunction · 0.70

Tested by

no test coverage detected