| 179 | } |
| 180 | |
| 181 | void ValidateSharedStateClose( |
| 182 | FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
| 183 | if (scope == FunctionContext::THREAD_LOCAL) { |
| 184 | void* state = context->GetFunctionState(scope); |
| 185 | context->Free(reinterpret_cast<uint8_t*>(state)); |
| 186 | context->SetFunctionState(scope, nullptr); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | TEST(UdfTest, TestFunctionContext) { |
| 191 | EXPECT_TRUE(UdfTestHarness::ValidateUdf<IntVal>(ValidateUdf, IntVal::null())); |
nothing calls this directly
no test coverage detected