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

Function TEST

test/unit/PipelineWriterTest.cpp:50–71  ·  view source on GitHub ↗

Make sure we handle duplicate stages properly.

Source from the content-addressed store, hash-verified

48
49// Make sure we handle duplicate stages properly.
50TEST(PipelineManagerTest, issue_2458)
51{
52 std::string in = R"(
53 [
54 "in.las",
55 "in2.las",
56 "out.las"
57 ]
58 )";
59
60 PipelineManager mgr;
61 std::istringstream iss(in);
62 mgr.readPipeline(iss);
63
64 std::ostringstream oss;
65 PipelineWriter::writePipeline(mgr.getStage(), oss);
66
67 std::string out = oss.str();
68 EXPECT_TRUE(out.find("readers_las1") != std::string::npos);
69 EXPECT_TRUE(out.find("readers_las2") != std::string::npos);
70 EXPECT_TRUE(out.find("writers_las1") != std::string::npos);
71}
72
73// Make sure options with Bounds & SpatialReference types are serialized correctly
74TEST(PipelineManagerTest, serialize)

Callers

nothing calls this directly

Calls 10

writePipelineFunction · 0.85
configuredpathFunction · 0.85
temppathFunction · 0.85
datapathFunction · 0.85
strMethod · 0.80
atMethod · 0.80
parseFunction · 0.50
readPipelineMethod · 0.45
findMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected