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

Function test_delete_attribute_elements

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

Source from the content-addressed store, hash-verified

450}
451
452void test_delete_attribute_elements( geode::AttributeManager& manager )
453{
454 std::vector< bool > to_delete( manager.nb_elements(), false );
455 to_delete[3] = true;
456 to_delete[5] = true;
457 manager.delete_elements( to_delete );
458 geode::OpenGeodeBasicException::test(
459 manager.nb_elements() == to_delete.size() - 2,
460 "Two attribute elements should have been removed" );
461}
462
463void test_sparse_attribute_after_element_deletion(
464 geode::AttributeManager& manager )

Callers 1

testFunction · 0.70

Calls 4

testFunction · 0.70
nb_elementsMethod · 0.45
delete_elementsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected