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

Function TEST

cpp/src/gandiva/precompiled/arithmetic_ops_test.cc:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace gandiva {
30
31TEST(TestArithmeticOps, TestIsDistinctFrom) {
32 EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, true, 1000, false), true);
33 EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, false, 1000, true), true);
34 EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, false, 1000, false), false);
35 EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, true, 1000, true), false);
36
37 EXPECT_EQ(is_not_distinct_from_int32_int32(1000, true, 1000, false), false);
38 EXPECT_EQ(is_not_distinct_from_int32_int32(1000, false, 1000, true), false);
39 EXPECT_EQ(is_not_distinct_from_int32_int32(1000, false, 1000, false), true);
40 EXPECT_EQ(is_not_distinct_from_int32_int32(1000, true, 1000, true), true);
41}
42
43TEST(TestArithmeticOps, TestPmod) {
44 gandiva::ExecutionContext context;

Callers

nothing calls this directly

Calls 3

has_errorMethod · 0.80
get_errorMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected