MCPcopy Create free account
hub / github.com/OSGeo/PROJ / TEST_F

Function TEST_F

test/unit/test_grids.cpp:62–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60// ---------------------------------------------------------------------------
61
62TEST_F(GridTest, VerticalShiftGridSet_null) {
63 auto gridSet = NS_PROJ::VerticalShiftGridSet::open(m_ctxt, "null");
64 ASSERT_NE(gridSet, nullptr);
65 auto grid = gridSet->gridAt(0.0, 0.0);
66 ASSERT_NE(grid, nullptr);
67 EXPECT_EQ(grid->width(), 3);
68 EXPECT_EQ(grid->height(), 3);
69 EXPECT_EQ(grid->extentAndRes().west, -M_PI);
70 EXPECT_TRUE(grid->isNullGrid());
71 EXPECT_FALSE(grid->hasChanged());
72 float out = -1.0f;
73 EXPECT_TRUE(grid->valueAt(0, 0, out));
74 EXPECT_EQ(out, 0.0f);
75 EXPECT_FALSE(grid->isNodata(0.0f, 0.0));
76 gridSet->reassign_context(m_ctxt2);
77 gridSet->reopen(m_ctxt2);
78}
79
80// ---------------------------------------------------------------------------
81

Callers

nothing calls this directly

Calls 13

sizeMethod · 0.80
valuesAtMethod · 0.80
gridAtMethod · 0.45
isNullGridMethod · 0.45
hasChangedMethod · 0.45
valueAtMethod · 0.45
isNodataMethod · 0.45
reassign_contextMethod · 0.45
reopenMethod · 0.45
unitMethod · 0.45
descriptionMethod · 0.45
samplesPerPixelMethod · 0.45

Tested by

no test coverage detected