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

Function TEST

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

Source from the content-addressed store, hash-verified

220};
221
222TEST(Decimal32Test, TestIntMinNegate) {
223 Decimal32 d(INT32_MIN);
224 auto neg = d.Negate();
225 ASSERT_EQ(neg, Decimal32(arrow::internal::SafeSignedNegate(INT32_MIN)));
226}
227
228TEST(Decimal32Test, TestIntMinFitsPrecision) {
229 Decimal32 d(INT32_MIN);

Callers

nothing calls this directly

Calls 15

SafeSignedNegateFunction · 0.85
FromStringFunction · 0.85
AssertDecimalFromStringFunction · 0.85
Decimal128FromLEFunction · 0.85
Decimal256FromLEFunction · 0.85
SafeLeftShiftFunction · 0.85
Decimal128FromInt128Function · 0.85
ToNativeFunction · 0.85
Decimal256FromInt128Function · 0.85
NegateMethod · 0.80
FitsInPrecisionMethod · 0.80
ToBytesMethod · 0.80

Tested by

no test coverage detected