| 353 | } |
| 354 | |
| 355 | void add_lines_in_model_boundaries( const geode::Section& model, |
| 356 | geode::SectionBuilder& builder, |
| 357 | absl::Span< const geode::uuid > line_uuids, |
| 358 | absl::Span< const geode::uuid > boundary_uuids ) |
| 359 | { |
| 360 | builder.add_line_in_model_boundary( model.line( line_uuids[0] ), |
| 361 | model.model_boundary( boundary_uuids[0] ) ); |
| 362 | for( const auto i : geode::Range{ 1, 5 } ) |
| 363 | { |
| 364 | builder.add_line_in_model_boundary( model.line( line_uuids[i] ), |
| 365 | model.model_boundary( boundary_uuids[1] ) ); |
| 366 | } |
| 367 | |
| 368 | for( const auto i : geode::Range{ 5 } ) |
| 369 | { |
| 370 | geode::OpenGeodeModelException::test( |
| 371 | model.nb_collections( line_uuids[i] ) == 1, |
| 372 | "This Line should be in 1 collection (of type Boundary)" ); |
| 373 | } |
| 374 | geode::OpenGeodeModelException::test( |
| 375 | model.nb_collections( line_uuids[5] ) == 0, |
| 376 | "Last Line should be in no collection." ); |
| 377 | } |
| 378 | |
| 379 | void add_corners_in_corner_collections( const geode::Section& model, |
| 380 | geode::SectionBuilder& builder, |
no test coverage detected