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

Function copyFlatTuple

test/api/result_value_test.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static decltype(auto) copyFlatTuple(lbug::processor::FlatTuple* tuple) {
47 std::vector<std::unique_ptr<lbug::common::Value>> ret;
48 for (uint32_t i = 0; i < tuple->len(); i++) {
49 ret.emplace_back(tuple->getValue(i)->copy());
50 }
51 return ret;
52}
53
54TEST_F(ResultValueTest, getNextExample) {
55 std::unique_ptr<lbug::main::QueryResult> result = conn->query("MATCH (p:person) RETURN p.*");

Callers 1

TEST_FFunction · 0.85

Calls 4

lenMethod · 0.80
emplace_backMethod · 0.80
copyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected