Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cpp/src/parquet/geospatial/util_internal_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,19 @@ INSTANTIATE_TEST_SUITE_P(

struct MakeWKBPointTestCase {
std::vector<double> xyzm;
bool has_z;
bool has_m;
bool has_z{};
bool has_m{};
};

std::ostream& operator<<(std::ostream& os, const MakeWKBPointTestCase& obj) {
os << "MakeWKBPointTestCase<has_z=" << obj.has_z << ", has_m=" << obj.has_m << ">";
return os;
}

class MakeWKBPointTestFixture : public testing::TestWithParam<MakeWKBPointTestCase> {};

TEST_P(MakeWKBPointTestFixture, MakeWKBPoint) {
auto param = GetParam();
const auto& param = GetParam();
std::string wkb = test::MakeWKBPoint(param.xyzm, param.has_z, param.has_m);
WKBGeometryBounder bounder;
ASSERT_NO_THROW(bounder.MergeGeometry(wkb));
Expand Down