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

Function ValidateFail

be/src/udf/udf-test.cc:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121IntVal ValidateFail(FunctionContext* context) {
122 EXPECT_FALSE(context->has_error());
123 EXPECT_TRUE(context->error_msg() == NULL);
124 context->SetError("Fail");
125 EXPECT_TRUE(context->has_error());
126 EXPECT_TRUE(strcmp(context->error_msg(), "Fail") == 0);
127 return IntVal::null();
128}
129
130IntVal ValidateMem(FunctionContext* context) {
131 uint8_t* buffer = context->Allocate(0);

Callers

nothing calls this directly

Calls 3

has_errorMethod · 0.80
error_msgMethod · 0.80
SetErrorMethod · 0.45

Tested by

no test coverage detected