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

Function TEST_F

test/api/prepare_test.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10TEST_F(ApiTest, issueTest1) {
11 conn->query("CREATE NODE TABLE T(id SERIAL, name STRING, PRIMARY KEY(id));");
12 conn->query("CREATE (t:T {name: \"foo\"});");
13 auto preparedStatement = conn->prepare("MATCH (t:T {id: $p}) return t.name;");
14 auto result = conn->execute(preparedStatement.get(), std::make_pair(std::string("p"), 0));
15 ASSERT_TRUE(result->hasNext());
16 checkTuple(result->getNext().get(), "foo\n");
17 ASSERT_FALSE(result->hasNext());
18}
19
20TEST_F(ApiTest, issueTest2) {
21 conn->query("CREATE NODE TABLE NodeOne(id INT64, name STRING, PRIMARY KEY(id));");

Callers

nothing calls this directly

Calls 12

checkTupleFunction · 0.85
lengthMethod · 0.80
int128_tClass · 0.50
queryMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
getMethod · 0.45
hasNextMethod · 0.45
getNextMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected