| 127 | }; |
| 128 | |
| 129 | TEST_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 | |
| 147 | TEST_P(WKBTestFixture, TestWKBBounderErrorForTruncatedInput) { |
| 148 | auto item = GetParam(); |
nothing calls this directly
no test coverage detected