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

Function TEST

test/unit/PipelineManagerTest.cpp:46–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44using namespace pdal;
45
46TEST(PipelineManagerTest, basic)
47{
48 std::string outfile = Support::temppath("temp.las");
49 FileUtils::deleteFile(outfile);
50
51 PipelineManager mgr;
52
53 Options optsR;
54 optsR.add("filename", Support::datapath("las/1.2-with-color.las"));
55 Stage& reader = mgr.addReader("readers.las");
56 reader.setOptions(optsR);
57
58 Options optsW;
59 optsW.add("filename", outfile);
60 Stage& writer = mgr.addWriter("writers.las");
61 writer.setInput(reader);
62 writer.setOptions(optsW);
63
64 point_count_t np = mgr.execute();
65 EXPECT_EQ(np, 1065U);
66
67 EXPECT_TRUE(!std::ifstream(outfile).fail());
68 FileUtils::deleteFile(outfile);
69}
70
71// Make sure that when we add an option at the command line, it overrides
72// a pipeline option.

Callers

nothing calls this directly

Calls 15

temppathFunction · 0.85
deleteFileFunction · 0.85
datapathFunction · 0.85
binpathFunction · 0.85
exenameFunction · 0.85
configuredpathFunction · 0.85
setOptionsMethod · 0.80
createStageMethod · 0.80
makeReaderMethod · 0.80
addMethod · 0.45
executeMethod · 0.45
prepareMethod · 0.45

Tested by

no test coverage detected