| 107 | } |
| 108 | |
| 109 | std::array< geode::uuid, 2 > add_model_boundaries( |
| 110 | const geode::Section& section, geode::SectionBuilder& builder ) |
| 111 | { |
| 112 | std::array< geode::uuid, 2 > uuids; |
| 113 | for( auto mb : geode::Range{ 2 } ) |
| 114 | { |
| 115 | uuids[mb] = builder.add_model_boundary(); |
| 116 | builder.set_model_boundary_name( |
| 117 | uuids[mb], absl::StrCat( "boundary", mb + 1 ) ); |
| 118 | } |
| 119 | const auto& temp_boundary = |
| 120 | section.model_boundary( builder.add_model_boundary() ); |
| 121 | builder.remove_model_boundary( temp_boundary ); |
| 122 | const auto message = |
| 123 | absl::StrCat( "Section should have ", 2, " model boundaries" ); |
| 124 | geode::OpenGeodeModelException::test( |
| 125 | section.nb_model_boundaries() == 2, message ); |
| 126 | geode::OpenGeodeModelException::test( |
| 127 | geode::detail::count_range_elements( section.model_boundaries() ) == 2, |
| 128 | message ); |
| 129 | geode::OpenGeodeModelException::test( |
| 130 | section.model_boundary( uuids[0] ).name() == "boundary1", |
| 131 | "Wrong ModelBoundary name" ); |
| 132 | return uuids; |
| 133 | } |
| 134 | |
| 135 | std::array< geode::uuid, 2 > add_corner_collections( |
| 136 | const geode::Section& section, geode::SectionBuilder& builder ) |
no test coverage detected