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

Function TEST

plugins/e57/test/ScanTest.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42{
43
44TEST(ScanTest,testScanCtr)
45{
46 e57::ImageFile imf(Support::datapath("e57/A4.e57"), "r");
47
48 const e57::ustring normalsExtension(
49 "http://www.libe57.org/E57_NOR_surface_normals.txt");
50 e57::ustring _normalsExtension;
51
52 // the extension may already be registered
53 if (!imf.extensionsLookupPrefix("nor", _normalsExtension))
54 imf.extensionsAdd("nor", normalsExtension);
55
56 e57::VectorNode data3D(imf.root().get("/data3D"));
57 auto scan = new e57::Scan((e57::StructureNode)data3D.get(0));
58 ASSERT_EQ(scan->getNumPoints(), (pdal::point_count_t)4);
59 imf.close();
60}
61
62TEST(ScanTest,getDimension)
63{

Callers

nothing calls this directly

Calls 14

datapathFunction · 0.85
extensionsAddMethod · 0.45
getMethod · 0.45
rootMethod · 0.45
getNumPointsMethod · 0.45
closeMethod · 0.45
getDimensionsMethod · 0.45
sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45
getPointsMethod · 0.45

Tested by

no test coverage detected