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

Function TEST_F

cpp/src/gandiva/engine_llvm_test.cc:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108};
109
110TEST_F(TestEngine, TestAddUnoptimised) {
111 configuration->set_optimize(false);
112 BuildEngine();
113
114 std::string fn_name = BuildVecAdd(engine.get());
115 ASSERT_OK(engine->FinalizeModule());
116 ASSERT_OK_AND_ASSIGN(auto fn_ptr, engine->CompiledFunction(fn_name));
117 auto add_func = reinterpret_cast<add_vector_func_t>(fn_ptr);
118
119 int64_t my_array[] = {1, 3, -5, 8, 10};
120 EXPECT_EQ(add_func(my_array, 5), 17);
121}
122
123TEST_F(TestEngine, TestAddOptimised) {
124 configuration->set_optimize(true);

Callers

nothing calls this directly

Calls 2

FinalizeModuleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected