| 64 | } |
| 65 | |
| 66 | static 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 | |
| 76 | static bool td_argument(yyjson_val *value, int *result) { |
| 77 | if (!yyjson_is_uint(value) || yyjson_get_uint(value) > INT_MAX) |
no test coverage detected