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

Method CheckOk

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

Source from the content-addressed store, hash-verified

599class TestAddWithOverflow : public ::testing::Test {
600 public:
601 void CheckOk(T a, T b, T expected_result = {}) {
602 ARROW_SCOPED_TRACE("a = ", a, ", b = ", b);
603 T result;
604 ASSERT_FALSE(AddWithOverflow(a, b, &result));
605 ASSERT_EQ(result, expected_result);
606 }
607
608 void CheckOverflow(T a, T b) {
609 ARROW_SCOPED_TRACE("a = ", a, ", b = ", b);

Callers 1

TYPED_TESTFunction · 0.80

Calls 1

AddWithOverflowFunction · 0.85

Tested by

no test coverage detected