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

Function TEST

plugins/spz/test/SpzReaderTest.cpp:13–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace pdal;
12
13TEST(SpzReaderTest, test1)
14{
15 Options opts;
16 opts.add("filename", Support::datapath("spz/fourth_st.spz"));
17
18 SpzReader reader;
19 reader.setOptions(opts);
20
21 PointTable table;
22 reader.prepare(table);
23 PointViewSet set = reader.execute(table);
24 PointViewPtr view = *set.begin();
25
26 EXPECT_EQ(view->size(), 131199u);
27 ASSERT_TRUE(table.layout()->hasDim(Dimension::Id::X));
28 //check custom dimensions too
29 Dimension::Id rot0 = table.layout()->findProprietaryDim("rot_0");
30 Dimension::Id sh2 = table.layout()->findProprietaryDim("f_dc_2");
31 ASSERT_TRUE(table.layout()->hasDim(rot0));
32 ASSERT_TRUE(table.layout()->hasDim(sh2));
33}
34
35TEST(SpzReaderTest, orientation_metadata)
36{

Callers

nothing calls this directly

Calls 10

datapathFunction · 0.85
setOptionsMethod · 0.80
hasDimMethod · 0.80
findProprietaryDimMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected