MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / validateUDFError

Function validateUDFError

test/api/udf_test.cpp:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305static void validateUDFError(std::function<void()> createFunc, std::string errMsg) {
306 try {
307 createFunc();
308 } catch (CatalogException& e) {
309 ASSERT_EQ(std::string(e.what()), errMsg);
310 return;
311 } catch (Exception&) {
312 FAIL();
313 }
314 FAIL();
315}
316
317TEST_F(ApiTest, UDFError) {
318 conn->createScalarFunction("add5", &add5);

Callers 1

TEST_FFunction · 0.85

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected