MCPcopy Create free account
hub / github.com/dmlc/parameter_server / TEST

Function TEST

src/test/shared_array_test.cc:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace PS;
6
7TEST(SArray, Ctor) {
8 std::vector<int> a = {1, 4, 3, 2};
9 SArray<int> sa; sa.copyFrom(a.begin(), a.end());
10 {
11 SArray<uint32> sb(sa);
12 EXPECT_EQ(sa.pointer().use_count(), 2);
13 }
14 EXPECT_EQ(sa.pointer().use_count(), 1);
15}
16
17TEST(SArray, Mem) {
18 SArray<int> x;

Callers 1

Calls 7

myPhyMemMethod · 0.80
segmentMethod · 0.80
findRangeMethod · 0.80
copyFromMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
setIntersectionMethod · 0.45

Tested by

no test coverage detected