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

Function TEST

test/unit/io/Ilvis2ReaderWithMDReaderTest.cpp:45–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43using namespace pdal;
44
45TEST(Ilvis2ReaderWithMDReaderTest, testInvalidMetadataFile)
46{
47 Option filename("filename",
48 Support::datapath("ilvis2/ILVIS2_TEST_FILE.TXT"));
49 Options options(filename);
50 options.add("metadata", "invalidfile");
51 std::shared_ptr<Ilvis2Reader> reader(new Ilvis2Reader);
52 reader->setOptions(options);
53
54 PointTable table;
55 try
56 {
57 reader->prepare(table);
58 reader->execute(table);
59 FAIL() << "Expected an exception for an invalid file";
60 }
61 catch (pdal_error const & err)
62 {
63 EXPECT_EQ("readers.ilvis2: Invalid metadata file: 'invalidfile'",
64 std::string(err.what()));
65 }
66}
67
68
69TEST(Ilvis2ReaderWithMDReaderTest, testValidMetadataFile)

Callers

nothing calls this directly

Calls 9

datapathFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
whatMethod · 0.45
getMetadataMethod · 0.45
valueMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected