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

Function test

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

Source from the content-addressed store, hash-verified

662}
663
664void 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
702OPENGEODE_TEST( "attribute" )

Callers 15

test_constant_attributeFunction · 0.70
test_serialize_managerFunction · 0.70
test_attribute_typesFunction · 0.70
test_attribute_renameFunction · 0.70

Calls 15

test_generic_valueFunction · 0.85
test_serialize_managerFunction · 0.85
test_copy_managerFunction · 0.85
test_import_managerFunction · 0.85
test_attribute_typesFunction · 0.85
test_attribute_renameFunction · 0.85

Tested by

no test coverage detected