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

Function TEST

test/unit/io/Ilvis2ReaderTest.cpp:62–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TEST(Ilvis2ReaderTest, testReadDefault)
63{
64 Option filename("filename",
65 Support::datapath("ilvis2/ILVIS2_TEST_FILE.TXT"));
66 Options options(filename);
67 std::shared_ptr<Ilvis2Reader> reader(new Ilvis2Reader);
68 reader->setOptions(options);
69
70 PointTable table;
71
72 reader->prepare(table);
73 PointViewSet viewSet = reader->execute(table);
74 EXPECT_EQ(viewSet.size(), 1u);
75 PointViewPtr view = *viewSet.begin();
76
77 EXPECT_EQ(view->size(), 4u);
78
79 checkPoint(*view.get(), 0, 42504.48313,
80 78.307672,-58.785213,1956.777
81 );
82
83 checkPoint(*view.get(), 1, 42504.48512,
84 78.307592, 101.215097, 1956.588
85 );
86
87 checkPoint(*view.get(), 2, 42504.48712,
88 78.307512, -58.78459, 1956.667
89 );
90
91 checkPoint(*view.get(), 3, 42504.48712,
92 78.307512, -58.78459, 2956.667
93 );
94}
95
96
97TEST(Ilvis2ReaderTest, testReadHigh)

Callers

nothing calls this directly

Calls 9

datapathFunction · 0.85
setOptionsMethod · 0.80
checkPointFunction · 0.70
prepareMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected