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

Function CheckIntWidth

cpp/src/arrow/util/int_util_test.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template <typename T>
63void CheckIntWidth(const std::vector<T>& values, uint8_t expected_width) {
64 for (const uint8_t min_width : all_widths) {
65 uint8_t width =
66 DetectIntWidth(values.data(), static_cast<int64_t>(values.size()), min_width);
67 ASSERT_EQ(width, std::max(min_width, expected_width));
68 width = DetectIntWidth(values.data(), nullptr, static_cast<int64_t>(values.size()),
69 min_width);
70 ASSERT_EQ(width, std::max(min_width, expected_width));
71 }
72}
73
74template <typename T>
75void CheckIntWidth(const std::vector<T>& values, const std::vector<uint8_t>& valid_bytes,

Callers 1

TESTFunction · 0.85

Calls 3

DetectIntWidthFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected