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

Function executeLongRunningQuery

test/api/api_test.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void executeLongRunningQuery(Connection* conn) {
69 auto result = conn->query(
70 "UNWIND RANGE(1,100000) AS x UNWIND RANGE(1, 100000) AS y RETURN COUNT(x + y);");
71 ASSERT_FALSE(result->isSuccess());
72 ASSERT_EQ(result->getErrorMessage(), "Interrupted.");
73}
74
75TEST_F(ApiTest, Interrupt) {
76 std::thread longRunningQueryThread(executeLongRunningQuery, conn.get());

Callers

nothing calls this directly

Calls 3

queryMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected