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

Function TEST

test/unit/apps/RandomTest.cpp:47–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45using namespace pdal;
46
47TEST(Random, extra_ops)
48{
49 std::string outfile(Support::temppath("out.las"));
50
51 const std::string cmd = Support::binpath("pdal") + " random "
52 "--count=100 --writers.las.dataformat_id=3 --writers.las.minor_version=3 " + outfile;
53
54 FileUtils::deleteFile(outfile);
55 std::string output;
56 Utils::run_shell_command(cmd, output);
57
58 Options o;
59 o.add("filename", outfile);
60
61 PointTable t;
62
63 LasReader r;
64 r.setOptions(o);
65 r.prepare(t);
66
67 MetadataNode n = r.getMetadata();
68 EXPECT_EQ(n.findChild("minor_version").value<uint8_t>(), 3);
69}
70

Callers

nothing calls this directly

Calls 7

temppathFunction · 0.85
binpathFunction · 0.85
deleteFileFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
getMetadataMethod · 0.45

Tested by

no test coverage detected