MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / TEST_F

Function TEST_F

rtpose_wrapper/src/caffe/test/test_syncedmem.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class SyncedMemoryTest : public ::testing::Test {};
15
16TEST_F(SyncedMemoryTest, TestInitialization) {
17 SyncedMemory mem(10);
18 EXPECT_EQ(mem.head(), SyncedMemory::UNINITIALIZED);
19 EXPECT_EQ(mem.size(), 10);
20 SyncedMemory* p_mem = new SyncedMemory(10 * sizeof(float));
21 EXPECT_EQ(p_mem->size(), 10 * sizeof(float));
22 delete p_mem;
23}
24
25#ifndef CPU_ONLY // GPU test
26

Callers

nothing calls this directly

Calls 8

caffe_memsetFunction · 0.85
caffe_gpu_memsetFunction · 0.85
headMethod · 0.80
sizeMethod · 0.45
cpu_dataMethod · 0.45
gpu_dataMethod · 0.45
mutable_cpu_dataMethod · 0.45
mutable_gpu_dataMethod · 0.45

Tested by

no test coverage detected