MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / td_copy_string

Function td_copy_string

src/discover/test_conventions.c:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static bool td_copy_string(cbm_test_declarations_t *declarations, yyjson_val *value,
67 bool identifier, const char **result) {
68 size_t len = 0;
69 const char *text = td_string(value, &len);
70 if (!text || (identifier && !td_identifier(text, len)))
71 return false;
72 *result = cbm_arena_strndup(&declarations->arena, text, len);
73 return *result != NULL;
74}
75
76static bool td_argument(yyjson_val *value, int *result) {
77 if (!yyjson_is_uint(value) || yyjson_get_uint(value) > INT_MAX)

Callers 1

td_recordFunction · 0.85

Calls 3

td_stringFunction · 0.85
td_identifierFunction · 0.85
cbm_arena_strndupFunction · 0.50

Tested by

no test coverage detected