Make sure we handle duplicate stages properly.
| 48 | |
| 49 | // Make sure we handle duplicate stages properly. |
| 50 | TEST(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 |
| 74 | TEST(PipelineManagerTest, serialize) |
nothing calls this directly
no test coverage detected