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

Function test_attribute_rename

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

Source from the content-addressed store, hash-verified

431}
432
433void test_attribute_rename( geode::AttributeManager& manager )
434{
435 manager.rename_attribute( "foo_cst", "foo_constant" );
436 auto constant_attribute =
437 manager.find_or_create_attribute< geode::ConstantAttribute, Foo >(
438 "foo_constant", Foo{} );
439 geode::OpenGeodeBasicException::test(
440 constant_attribute->value().double_ == 12.4,
441 "Should be equal to 12.4" );
442}
443
444void test_number_of_attributes(
445 geode::AttributeManager& manager, geode::index_t nb )

Callers 1

testFunction · 0.85

Calls 3

testFunction · 0.70
rename_attributeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected