| 346 | |
| 347 | template < typename T > |
| 348 | void check_one_attribute_values( geode::AttributeManager& manager, |
| 349 | geode::AttributeManager& reloaded_manager, |
| 350 | std::string_view name ) |
| 351 | { |
| 352 | const auto in_att = manager.find_attribute< T >( name ); |
| 353 | const auto out_att = reloaded_manager.find_attribute< T >( name ); |
| 354 | for( auto i : geode::Range{ manager.nb_elements() } ) |
| 355 | { |
| 356 | geode::OpenGeodeBasicException::test( |
| 357 | in_att->value( i ) == out_att->value( i ), |
| 358 | "At least one value of Attribute ", name, |
| 359 | " is not correct after reloading" ); |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | void check_attribute_values( geode::AttributeManager& manager, |
| 364 | geode::AttributeManager& reloaded_manager ) |
nothing calls this directly
no test coverage detected