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

Function check_one_attribute_values

tests/basic/test-attribute.cpp:348–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347template < typename T >
348void 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
363void check_attribute_values( geode::AttributeManager& manager,
364 geode::AttributeManager& reloaded_manager )

Callers

nothing calls this directly

Calls 3

testFunction · 0.70
nb_elementsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected