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

Function AssertArrayBits

cpp/src/arrow/util/decimal_test.cc:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74// and that all other bits are equal to `expected_high`.
75template <typename T, size_t N, typename U, typename V>
76void AssertArrayBits(const std::array<T, N>& a, U expected_low, V expected_high) {
77 EXPECT_EQ(a[0], expected_low);
78 for (size_t i = 1; i < N; ++i) {
79 EXPECT_EQ(a[i], expected_high);
80 }
81}
82
83Decimal128 Decimal128FromLE(const std::array<uint64_t, 2>& a) {
84 return Decimal128(Decimal128::LittleEndianArray, a);

Callers 2

CheckConstructFromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected