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

Function copy_flat_tuple

test/c_api/query_result_test.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17static lbug_value* copy_flat_tuple(lbug_flat_tuple* tuple, uint32_t tupleLen) {
18 lbug_value* ret = (lbug_value*)malloc(sizeof(lbug_value) * tupleLen);
19 for (uint32_t i = 0; i < tupleLen; i++) {
20 lbug_flat_tuple_get_value(tuple, i, &ret[i]);
21 }
22 return ret;
23}
24
25TEST_F(CApiQueryResultTest, GetNextExample) {
26 auto conn = getConnection();

Callers 1

TEST_FFunction · 0.85

Calls 1

Tested by

no test coverage detected