MCPcopy Create free account
hub / github.com/PDAL/PDAL / TEST

Function TEST

test/unit/ArtifactTest.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64};
65
66TEST(ArtifactTest, simple)
67{
68 using TAPtr = std::shared_ptr<TestArtifact>;
69 TAPtr ta(new TestArtifact("MyTest"));
70
71 PointTable t;
72 t.artifactManager().put("MyTest", ta);
73 EXPECT_EQ(t.artifactManager().get<TestArtifact>("foo"), nullptr);
74 EXPECT_NE(t.artifactManager().get<TestArtifact>("MyTest"), nullptr);
75 EXPECT_EQ(t.artifactManager().get<TestArtifact>("MyTest")->m_val, "MyTest");
76 EXPECT_EQ(t.artifactManager().get<Foo>("MyTest"), nullptr);
77 EXPECT_EQ(t.artifactManager().get<TestArtifact2>("MyTest"), nullptr);
78}
79
80TEST(ArtifactTest, replace)
81{

Callers

nothing calls this directly

Calls 12

findFunction · 0.85
replaceOrPutMethod · 0.80
keysMethod · 0.80
atMethod · 0.80
putMethod · 0.45
existsMethod · 0.45
replaceMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected