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

Function checkDimension

plugins/rdb/test/RdbReaderTest.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80template <typename ValueType>
81void checkDimension(
82 const PointViewPtr view,
83 const PointId index,
84 const Dimension::Id dimension,
85 const ValueType expected,
86 const double epsilon
87)
88{
89 const auto title = view->dimName(dimension);
90 const auto value = view->getFieldAs<ValueType>(dimension, index);
91 EXPECT_NEAR(value, expected, epsilon) << "dimension: " << title;
92}
93
94void checkPoint(
95 const PointViewPtr view,

Callers 5

checkPointFunction · 0.70
TESTFunction · 0.70
checkPointFunction · 0.50
checkPointFunction · 0.50
checkPointFunction · 0.50

Calls 1

dimNameMethod · 0.80

Tested by

no test coverage detected