MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / TEST_F

Function TEST_F

deps/memkind/src/test/pmem_allocator_tests.cpp:61–68  ·  view source on GitHub ↗

Compare two same kind different type allocators

Source from the content-addressed store, hash-verified

59
60//Compare two same kind different type allocators
61TEST_F(PmemAllocatorTests,
62 test_TC_MEMKIND_AllocatorCompare_SameKindDifferentType_Test)
63{
64 pmem::allocator<int> alc1 { alloc_source_f1 };
65 pmem::allocator<char> alc2 { alloc_source_f1 };
66 ASSERT_TRUE(alc1 == alc2);
67 ASSERT_FALSE(alc1 != alc2);
68}
69
70//Compare two same kind same type
71TEST_F(PmemAllocatorTests,

Callers

nothing calls this directly

Calls 4

allocateMethod · 0.45
deallocateMethod · 0.45
constructMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected