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

Method processOne

test/unit/filters/CropFilterTest.cpp:448–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446 }
447
448 virtual bool processOne(PointRef& point)
449 {
450 if (m_count == 0)
451 {
452 EXPECT_EQ(point.getFieldAs<int>(Id::X), 2);
453 EXPECT_EQ(point.getFieldAs<int>(Id::Y), 2);
454 }
455 if (m_count == 1)
456 {
457 EXPECT_EQ(point.getFieldAs<int>(Id::X), 6);
458 EXPECT_EQ(point.getFieldAs<int>(Id::Y), 2);
459 }
460 if (m_count == 2)
461 {
462 EXPECT_EQ(point.getFieldAs<int>(Id::X), 10);
463 EXPECT_EQ(point.getFieldAs<int>(Id::Y), 2);
464 }
465 if (m_count == 3)
466 {
467 EXPECT_EQ(point.getFieldAs<int>(Id::X), 105);
468 EXPECT_EQ(point.getFieldAs<int>(Id::Y), 105);
469 }
470 m_count++;
471 return true;
472 }
473 };
474
475 TestFilter f;

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected