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

Function TEST

test/unit/apps/TranslateTest.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55TEST(TranslateTest, t1)
56{
57 std::string output;
58
59 std::string in = Support::datapath("las/autzen_trim.las");
60 std::string out = Support::temppath("out.las");
61
62 EXPECT_EQ(runTranslate(in + " " + out, output), 0);
63 EXPECT_EQ(runTranslate(in + " -f filters.stats " + out, output), 0);
64 EXPECT_EQ(runTranslate(in + " " + out + " stats", output), 0);
65 EXPECT_EQ(runTranslate(in + " " + out + " filters.stats", output), 0);
66 EXPECT_NE(runTranslate(in + " " + out + " foobar", output), 0);
67 EXPECT_NE(runTranslate(in + " " + out +
68 " filters.stats --json filters.stats", output), 0);
69 EXPECT_NE(runTranslate(in + " " + out +
70 " --json filters.stats", output), 0);
71}
72
73// Tests for processing JSON input.
74TEST(TranslateTest, t2)

Callers

nothing calls this directly

Calls 5

datapathFunction · 0.85
temppathFunction · 0.85
runTranslateFunction · 0.85
deleteFileFunction · 0.85
fileExistsFunction · 0.50

Tested by

no test coverage detected