MCPcopy Create free account
hub / github.com/apache/arrow / TEST_P

Function TEST_P

cpp/src/parquet/geospatial/util_internal_test.cc:129–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127};
128
129TEST_P(WKBTestFixture, TestWKBBounderBounds) {
130 auto item = GetParam();
131
132 WKBGeometryBounder bounder;
133 EXPECT_EQ(bounder.Bounds(), BoundingBox());
134
135 ASSERT_NO_THROW(bounder.MergeGeometry(item.wkb));
136
137 EXPECT_EQ(bounder.Bounds(), item.box);
138 uint32_t wkb_type =
139 static_cast<int>(item.dimensions) * 1000 + static_cast<int>(item.geometry_type);
140 EXPECT_THAT(bounder.GeometryTypes(), ::testing::ElementsAre(::testing::Eq(wkb_type)));
141
142 bounder.Reset();
143 EXPECT_EQ(bounder.Bounds(), BoundingBox());
144 EXPECT_TRUE(bounder.GeometryTypes().empty());
145}
146
147TEST_P(WKBTestFixture, TestWKBBounderErrorForTruncatedInput) {
148 auto item = GetParam();

Callers

nothing calls this directly

Calls 8

MakeWKBPointFunction · 0.85
MergeGeometryMethod · 0.80
GeometryTypesMethod · 0.80
BoundingBoxFunction · 0.70
ResetMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected