| 133 | } |
| 134 | |
| 135 | std::array< geode::uuid, 2 > add_corner_collections( |
| 136 | const geode::Section& section, geode::SectionBuilder& builder ) |
| 137 | { |
| 138 | std::array< geode::uuid, 2 > uuids; |
| 139 | for( auto mb : geode::Range{ 2 } ) |
| 140 | { |
| 141 | uuids[mb] = builder.add_corner_collection(); |
| 142 | builder.set_corner_collection_name( |
| 143 | uuids[mb], absl::StrCat( "collection", mb + 1 ) ); |
| 144 | } |
| 145 | const auto& temp_collection = |
| 146 | section.corner_collection( builder.add_corner_collection() ); |
| 147 | builder.remove_corner_collection( temp_collection ); |
| 148 | const auto message = |
| 149 | absl::StrCat( "Section should have ", 2, " corner collections" ); |
| 150 | geode::OpenGeodeModelException::test( |
| 151 | section.nb_corner_collections() == 2, message ); |
| 152 | geode::OpenGeodeModelException::test( |
| 153 | geode::detail::count_range_elements( section.corner_collections() ) |
| 154 | == 2, |
| 155 | message ); |
| 156 | geode::OpenGeodeModelException::test( |
| 157 | section.corner_collection( uuids[0] ).name() == "collection1", |
| 158 | "Wrong CornerCollection name" ); |
| 159 | return uuids; |
| 160 | } |
| 161 | |
| 162 | std::array< geode::uuid, 2 > add_line_collections( |
| 163 | const geode::Section& section, geode::SectionBuilder& builder ) |
no test coverage detected