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

Function TEST

test/unit/io/TextWriterTest.cpp:46–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44using namespace pdal;
45
46TEST(TextWriterTest, t1)
47{
48 std::string outfile(Support::temppath("utm17.txt"));
49 std::string infile(Support::datapath("text/utm17_1.txt"));
50
51 FileUtils::deleteFile(outfile);
52
53 TextReader r;
54 Options ro;
55
56 ro.add("filename", infile);
57 r.setOptions(ro);
58
59 TextWriter w;
60 Options wo;
61
62 wo.add("filename", outfile);
63 wo.add("order", "X,Y,Z");
64 wo.add("quote_header", false);
65 wo.add("precision", 2);
66 w.setOptions(wo);
67 w.setInput(r);
68
69 PointTable t;
70
71 w.prepare(t);
72 w.execute(t);
73
74 EXPECT_EQ(Support::compare_text_files(infile, outfile), true);
75}
76
77TEST(TextWriterTest, t2)
78{

Callers

nothing calls this directly

Calls 12

temppathFunction · 0.85
datapathFunction · 0.85
deleteFileFunction · 0.85
compare_text_filesFunction · 0.85
readFileIntoStringFunction · 0.85
setOptionsMethod · 0.80
registerDimsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
setFieldMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected