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

Function TEST

plugins/mbio/test/MBSystemTest.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52TEST(MBSystemReaderTest, testRead)
53{
54 StageFactory f;
55 Stage* reader(f.createStage("readers.mbio"));
56 EXPECT_TRUE(reader);
57
58 Options options;
59 options.add("filename", getFilePath());
60 options.add("format", "mbf_em300raw");
61 reader->setOptions(options);
62
63 PointTable table;
64 reader->prepare(table);
65 PointViewSet viewSet = reader->execute(table);
66 EXPECT_EQ(viewSet.size(), 1u);
67 PointViewPtr view = *viewSet.begin();
68 EXPECT_EQ(view->size(), 3767u);
69}

Callers

nothing calls this directly

Calls 8

createStageMethod · 0.80
setOptionsMethod · 0.80
getFilePathFunction · 0.70
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected