| 129 | } |
| 130 | |
| 131 | void test_foo_constant_attribute( geode::AttributeManager& manager ) |
| 132 | { |
| 133 | auto constant_attribute = |
| 134 | manager.find_or_create_attribute< geode::ConstantAttribute, Foo >( |
| 135 | "foo_cst", Foo{} ); |
| 136 | constant_attribute->modify_value( []( Foo& foo ) { |
| 137 | foo.double_ = 12.4; |
| 138 | } ); |
| 139 | geode::OpenGeodeBasicException::test( |
| 140 | constant_attribute->value().double_ == 12.4, |
| 141 | "Should be equal to 12.4" ); |
| 142 | } |
| 143 | |
| 144 | void test_foo_variable_attribute( geode::AttributeManager& manager ) |
| 145 | { |
no test coverage detected