| 662 | } |
| 663 | |
| 664 | void test() |
| 665 | { |
| 666 | geode::AttributeManager manager; |
| 667 | manager.resize( 10 ); |
| 668 | geode::OpenGeodeBasicException::test( |
| 669 | manager.nb_elements() == 10, "Manager should have 10 elements" ); |
| 670 | test_constant_attribute( manager ); |
| 671 | test_foo_constant_attribute( manager ); |
| 672 | test_int_variable_attribute( manager ); |
| 673 | test_bool_variable_attribute( manager ); |
| 674 | test_foo_variable_attribute( manager ); |
| 675 | test_double_sparse_attribute( manager ); |
| 676 | test_foo_sparse_attribute( manager ); |
| 677 | test_generic_value( manager ); |
| 678 | test_permutation( manager ); |
| 679 | test_delete_attribute_elements( manager ); |
| 680 | test_sparse_attribute_after_element_deletion( manager ); |
| 681 | |
| 682 | test_serialize_manager( manager ); |
| 683 | |
| 684 | test_copy_manager( manager ); |
| 685 | test_import_manager( manager ); |
| 686 | test_multi_import_manager(); |
| 687 | test_attribute_types( manager ); |
| 688 | test_attribute_rename( manager ); |
| 689 | test_number_of_attributes( manager, 8 ); |
| 690 | manager.delete_attribute( "bool" ); |
| 691 | test_number_of_attributes( manager, 7 ); |
| 692 | manager.clear_attributes(); |
| 693 | test_number_of_attributes( manager, 7 ); |
| 694 | manager.resize( 10 ); |
| 695 | geode::OpenGeodeBasicException::test( |
| 696 | manager.nb_elements() == 10, "Manager should have 10 elements" ); |
| 697 | test_double_array_attribute( manager ); |
| 698 | manager.clear(); |
| 699 | test_number_of_attributes( manager, 0 ); |
| 700 | } |
| 701 | |
| 702 | OPENGEODE_TEST( "attribute" ) |
no test coverage detected