MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/exprs/expr-codegen-test.cc:286–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286TEST_F(ExprCodegenTest, TestGetConstFnAttrsInterpreted) {
287 // Call fn and check results'. The input is of type Decimal(10,2) (i.e. 10000.25) and
288 // the output type is Decimal(10,1) (i.e. 10000.3). The precision and scale of arguments
289 // and return types are encoded above (ARG0_*, RET_*);
290 int64_t v = 1000025;
291 DecimalVal arg0_val(v);
292 BooleanVal arg1_val;
293 StringVal arg2_val;
294 DecimalVal result = TestGetFnAttrs(fn_ctx_, arg0_val, arg1_val, arg2_val);
295 // sanity check result
296 EXPECT_EQ(result.is_null, false);
297 EXPECT_EQ(result.val8, 100003);
298 CheckFnAttr();
299}
300
301TEST_F(ExprCodegenTest, TestInlineConstFnAttrs) {
302 // Setup thrift descriptors

Callers

nothing calls this directly

Calls 15

TestGetFnAttrsFunction · 0.85
CreateDecimalLiteralFunction · 0.85
CreateBooleanLiteralFunction · 0.85
CreateStringLiteralFunction · 0.85
CreateFunctionCallFunction · 0.85
CreateClass · 0.85
push_backMethod · 0.80
FinalizeFunctionMethod · 0.80
RowDescriptorClass · 0.70
getMethod · 0.65
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected