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

Function TEST

plugins/icebridge/test/IcebridgeReaderTest.cpp:91–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91TEST(IcebridgeReaderTest, testRead)
92{
93 StageFactory f;
94 Stage* reader(f.createStage("readers.icebridge"));
95 EXPECT_TRUE(reader);
96
97 Option filename("filename", getFilePath());
98 Options options(filename);
99 reader->setOptions(options);
100
101 PointTable table;
102 reader->prepare(table);
103 PointViewSet viewSet = reader->execute(table);
104 EXPECT_EQ(viewSet.size(), 1u);
105 PointViewPtr view = *viewSet.begin();
106 EXPECT_EQ(view->size(), 2u);
107
108 checkPoint(
109 *view,
110 0,
111 1414375e2f, // time
112 82.60531f, // latitude
113 -58.59381f, // longitude
114 18.678f, // elevation
115 2408, // xmtSig
116 181, // rcvSig
117 49.91f, // azimuth
118 -4.376f, // pitch
119 0.608f, // roll
120 2.9f, // gpsPdop
121 20.0f, // pulseWidth
122 0.0f); // relTime
123
124 checkPoint(
125 *view,
126 1,
127 1414375e2f, // time
128 82.60528f, // latitude
129 -58.59512f, // longitude
130 18.688f, // elevation
131 2642, // xmtSig
132 173, // rcvSig
133 52.006f, // azimuth
134 -4.376f, // pitch
135 0.609f, // roll
136 2.9f, // gpsPdop
137 17.0f, // pulseWidth
138 0.0f); // relTime
139}
140
141TEST(IcebridgeReaderTest, testPipeline)
142{

Callers

nothing calls this directly

Calls 12

configuredpathFunction · 0.85
deleteFileFunction · 0.85
datapathFunction · 0.85
createStageMethod · 0.80
setOptionsMethod · 0.80
getFilePathFunction · 0.70
checkPointFunction · 0.70
prepareMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
readPipelineMethod · 0.45

Tested by

no test coverage detected