| 1 | component: parser |
| 2 | variables: |
| 3 | - name: json_input_is_well_formed |
| 4 | type: bool |
| 5 | direction: input |
| 6 | description: True when the provided JSON byte slice is well formed for the lookup case under evaluation. |
| 7 | - name: addressed_path_exists |
| 8 | type: bool |
| 9 | direction: input |
| 10 | description: True when the requested key path resolves to a value in the JSON input under evaluation. |
| 11 | - name: key_path_is_provided |
| 12 | type: bool |
| 13 | direction: input |
| 14 | description: True when the caller supplies at least one key-path segment for the lookup case under evaluation. |
| 15 | - name: json_input_is_empty |
| 16 | type: bool |
| 17 | direction: input |
| 18 | description: True when the provided lookup input is empty. |
| 19 | - name: input_is_incomplete_during_lookup |
| 20 | type: bool |
| 21 | direction: input |
| 22 | description: True when the input is truncated or incomplete before Get can complete the addressed lookup. |
| 23 | - name: returns_existing_path_lookup_result |
| 24 | type: bool |
| 25 | direction: output |
| 26 | description: True when Get returns the addressed value, value type, end offset, and no error for a well-formed existing path lookup. |
| 27 | properties: |
| 28 | merge: last_wins |
| 29 | idempotent: true |
| 30 | commutative: true |
| 31 | - name: returns_missing_path_result_for_well_formed_lookup |
| 32 | type: bool |
| 33 | direction: output |
| 34 | description: True when Get reports the defined not-found outcome for a well-formed lookup whose addressed path does not exist. |
| 35 | properties: |
| 36 | merge: last_wins |
| 37 | idempotent: true |
| 38 | commutative: true |
| 39 | - name: returns_parse_error_for_incomplete_lookup |
| 40 | type: bool |
| 41 | direction: output |
| 42 | description: True when Get reports a parse-related error for an incomplete or truncated lookup input. |
| 43 | properties: |
| 44 | merge: last_wins |
| 45 | idempotent: true |
| 46 | commutative: true |
| 47 | - name: returns_root_value_without_key_path |
| 48 | type: bool |
| 49 | direction: output |
| 50 | description: True when Get returns the closest complete root JSON value for a well-formed input when no key path is provided. |
| 51 | properties: |
| 52 | merge: last_wins |
| 53 | idempotent: true |
| 54 | commutative: true |
| 55 | - name: returns_missing_path_result_for_empty_input |
| 56 | type: bool |
| 57 | direction: output |
| 58 | description: True when Get reports the defined not-found outcome for an empty input with a provided key path. |
| 59 | properties: |
| 60 | merge: last_wins |
| 61 | idempotent: true |
| 62 | commutative: true |
| 63 | - name: path_segment_is_object_key |
| 64 | type: bool |
| 65 | direction: input |
| 66 | description: True when the current lookup path segment is interpreted as an object-member key rather than as an array index. |
| 67 | - name: segment_is_evaluated_at_current_scope |
| 68 | type: bool |
| 69 | direction: input |
| 70 | description: True when the current lookup segment is being matched against the current JSON structural scope rather than against a sibling or deeper subtree. |
| 71 | - name: path_segment_is_array_index |
| 72 | type: bool |
| 73 | direction: input |
| 74 | description: True when the current lookup path segment is interpreted as an array index. |
| 75 | - name: array_index_segment_is_valid |
| 76 | type: bool |
| 77 | direction: input |
| 78 | description: True when the current array-index path segment has valid index syntax. |
| 79 | - name: array_index_is_in_bounds |
| 80 | type: bool |
| 81 | direction: input |
| 82 | description: True when the addressed array index is within the bounds of the addressed array. |
| 83 | data_constraint: |
| 84 | domain: integer |
| 85 | condition: index >= 0 && index < array_length |
| 86 | parameters: |
| 87 | - name: index |
| 88 | type: int |
| 89 | - name: array_length |
| 90 | type: int |
| 91 | constraint: '>= 0' |
| 92 | - name: array_index_is_out_of_bounds |
| 93 | type: bool |
| 94 | direction: input |
| 95 | description: True when the addressed array index exceeds the bounds of the addressed array. |
| 96 | data_constraint: |
| 97 | domain: integer |
| 98 | condition: index < 0 || index >= array_length |
| 99 | parameters: |
| 100 | - name: index |
| 101 | type: int |
| 102 | - name: array_length |
| 103 | type: int |
| 104 | constraint: '>= 0' |
| 105 | - name: escaped_json_object_key_is_present |
| 106 | type: bool |
| 107 | direction: input |
| 108 | description: True when the addressed object member key is encoded with JSON escape sequences in the payload. |
| 109 | - name: decoded_path_segment_matches_escaped_key |
| 110 | type: bool |
| 111 | direction: input |
| 112 | description: True when the decoded lookup path segment matches the logical value of an escaped JSON object key. |
| 113 | - name: addressed_value_is_string |
| 114 | type: bool |
| 115 | direction: input |
| 116 | description: True when the addressed successful lookup value is a JSON string token. |
| 117 | - name: addressed_value_is_number |
| 118 | type: bool |
| 119 | direction: input |
| 120 | description: True when the addressed value is a JSON number token. |
| 121 | - name: addressed_value_is_boolean |
| 122 | type: bool |
| 123 | direction: input |
| 124 | description: True when the addressed value is a JSON boolean token. |
| 125 | - name: returns_value_from_current_scope_object_key |
| 126 | type: bool |
| 127 | direction: output |
| 128 | description: True when Get resolves the requested object-member path segment only against the current structural scope and returns that value. |
| 129 | - name: returns_value_from_in_bounds_array_index |
| 130 | type: bool |
| 131 | direction: output |
| 132 | description: True when Get resolves a valid in-bounds array-index path segment and returns the addressed element. |
| 133 | properties: |
| 134 | merge: last_wins |
| 135 | idempotent: true |
| 136 | commutative: true |
| 137 | - name: returns_invalid_array_index_not_found |
| 138 | type: bool |
| 139 | direction: output |
| 140 | description: True when Get reports the defined not-found outcome for a malformed array-index path segment. |
| 141 | properties: |
| 142 | merge: last_wins |
| 143 | idempotent: true |
| 144 | commutative: true |
| 145 | - name: returns_oob_array_index_not_found |
| 146 | type: bool |
| 147 | direction: output |
| 148 | description: True when Get reports the defined not-found outcome for a valid but out-of-bounds array index. |
| 149 | properties: |
| 150 | merge: last_wins |
| 151 | idempotent: true |
| 152 | commutative: true |
| 153 | - name: returns_value_from_decoded_escaped_key |
| 154 | type: bool |
| 155 | direction: output |
| 156 | description: True when Get resolves an escaped JSON object key by comparing the decoded path segment to the logical key value. |
| 157 | properties: |
| 158 | merge: last_wins |
| 159 | idempotent: true |
| 160 | commutative: true |
| 161 | - name: returns_unquoted_raw_string_contents |
| 162 | type: bool |
| 163 | direction: output |
| 164 | description: True when Get returns JSON string contents without surrounding quotes and without JSON unescaping. |
| 165 | properties: |
| 166 | merge: last_wins |
| 167 | idempotent: true |
| 168 | commutative: true |
| 169 | - name: malformed_input_outside_addressed_token |
| 170 | type: bool |
| 171 | direction: input |
| 172 | description: True when malformed JSON appears outside the addressed token path rather than inside the token that lookup is trying to return. |
| 173 | - name: addressed_token_can_be_isolated |
| 174 | type: bool |
| 175 | direction: input |
| 176 | description: True when Get can still isolate a complete addressed token or determine lookup absence despite malformed input elsewhere in the document. |
| 177 | - name: returns_best_effort_lookup_result |
| 178 | type: bool |
| 179 | direction: output |
| 180 | description: True when Get preserves the corresponding success or not-found lookup result despite malformed input outside the addressed token path. |
| 181 | properties: |
| 182 | merge: last_wins |
| 183 | idempotent: true |
| 184 | commutative: true |
| 185 | - name: addressed_token_shape_is_invalid |
| 186 | type: bool |
| 187 | direction: input |
| 188 | description: True when the addressed token cannot be classified as string, object, array, number, boolean, or null. |
| 189 | - name: returns_value_type_error |
| 190 | type: bool |
| 191 | direction: output |
| 192 | description: True when Get returns a value-type classification error for an invalid addressed token shape. |
| 193 | properties: |
| 194 | merge: last_wins |
| 195 | idempotent: true |
| 196 | commutative: true |
| 197 | - name: raw_string_token_is_well_formed |
| 198 | type: bool |
| 199 | direction: input |
| 200 | description: True when the addressed raw JSON string token is well formed and can be decoded. |
| 201 | - name: returns_getstring_decoded_value |
| 202 | type: bool |
| 203 | direction: output |
| 204 | description: True when GetString returns the addressed value as a decoded Go string. |
| 205 | - name: raw_number_token_is_integer_parseable |
| 206 | type: bool |
| 207 | direction: input |
| 208 | description: True when the addressed JSON number token can be parsed as an int64 value. |
| 209 | - name: returns_getint_value |
| 210 | type: bool |
| 211 | direction: output |
| 212 | description: True when GetInt returns the addressed value as an int64. |
| 213 | - name: raw_number_token_is_float_parseable |
| 214 | type: bool |
| 215 | direction: input |
| 216 | description: True when the addressed JSON number token can be parsed as a float64 value. |
| 217 | - name: returns_getfloat_value |
| 218 | type: bool |
| 219 | direction: output |
| 220 | description: True when GetFloat returns the addressed value as a float64. |
| 221 | - name: raw_boolean_token_is_well_formed |
| 222 | type: bool |
| 223 | direction: input |
| 224 | description: True when the addressed JSON boolean token is a valid `true` or `false` literal. |
| 225 | - name: returns_getboolean_value |
| 226 | type: bool |
| 227 | direction: output |
| 228 | description: True when GetBoolean returns the addressed value as a Go bool. |
| 229 | - name: addressed_array_is_well_formed |
| 230 | type: bool |
| 231 | direction: input |
| 232 | description: True when ArrayEach is operating on a well-formed addressed JSON array. |
| 233 | - name: addressed_array_is_empty |
| 234 | type: bool |
| 235 | direction: input |
| 236 | description: True when ArrayEach is operating on an addressed array that contains no elements. |
| 237 | - name: array_callback_receives_elements_in_order |
| 238 | type: bool |
| 239 | direction: output |
| 240 | description: True when ArrayEach invokes the callback for each addressed array element in encounter order. |
| 241 | - name: empty_array_produces_no_callbacks |
| 242 | type: bool |
| 243 | direction: output |
| 244 | description: True when ArrayEach emits no callbacks for a well-formed empty addressed array. |
| 245 | - name: malformed_array_input_returns_error |
| 246 | type: bool |
| 247 | direction: output |
| 248 | description: True when ArrayEach returns an error for malformed or unusable array input. |
| 249 | - name: addressed_object_is_well_formed |
| 250 | type: bool |
| 251 | direction: input |
| 252 | description: True when ObjectEach is operating on a well-formed addressed JSON object. |
| 253 | - name: addressed_object_is_empty |
| 254 | type: bool |
| 255 | direction: input |
| 256 | description: True when ObjectEach is operating on an addressed object that contains no entries. |
| 257 | - name: object_callback_receives_entries |
| 258 | type: bool |
| 259 | direction: output |
| 260 | description: True when ObjectEach invokes the callback with the correct key, value, and value-type tuple for each addressed object entry. |
| 261 | - name: object_callback_error_is_returned |
| 262 | type: bool |
| 263 | direction: output |
| 264 | description: True when ObjectEach returns an error produced by the callback instead of swallowing it. |
| 265 | - name: empty_object_produces_no_entries |
| 266 | type: bool |
| 267 | direction: output |
| 268 | description: True when ObjectEach emits no entry callbacks for a well-formed empty addressed object. |
| 269 | - name: malformed_object_input_returns_error |
| 270 | type: bool |
| 271 | direction: output |
| 272 | description: True when ObjectEach returns an error for malformed or unusable addressed object input. |
| 273 | - name: object_callback_returns_error |
| 274 | type: bool |
| 275 | direction: input |
| 276 | description: True when the callback supplied to ObjectEach returns an error during iteration. |
| 277 | - name: multipath_requests_are_provided |
| 278 | type: bool |
| 279 | direction: input |
| 280 | description: True when EachKey is called with one or more requested key paths. |
| 281 | - name: eachkey_callback_receives_found_values |
| 282 | type: bool |
| 283 | direction: output |
| 284 | description: True when EachKey invokes the callback with the value and type for each requested path that is found during the scan. |
| 285 | - name: missing_multipath_request_does_not_emit_callback |
| 286 | type: bool |
| 287 | direction: output |
| 288 | description: True when EachKey does not emit a found-value callback for a requested path that is absent. |
| 289 | - name: eachkey_malformed_input_returns_error |
| 290 | type: bool |
| 291 | direction: output |
| 292 | description: True when EachKey surfaces an error for malformed or unusable input during the scan. |
| 293 | - name: eachkey_completes_requested_scan |
| 294 | type: bool |
| 295 | direction: output |
| 296 | description: True when EachKey completes the requested multi-path scan and stops once the requested results have been determined. |
| 297 | - name: set_path_is_provided |
| 298 | type: bool |
| 299 | direction: input |
| 300 | description: True when Set is called with at least one mutation path segment. |
| 301 | data_constraint: |
| 302 | domain: integer |
| 303 | condition: set_path_segment_count > 0 |
| 304 | parameters: |
| 305 | - name: set_path_segment_count |
| 306 | type: int |
| 307 | constraint: '>= 0' |
| 308 | - name: set_target_exists |
| 309 | type: bool |
| 310 | direction: input |
| 311 | description: True when the full addressed Set path already exists in the input JSON. |
| 312 | - name: set_creates_missing_path |
| 313 | type: bool |
| 314 | direction: output |
| 315 | description: True when Set creates the missing addressed path inside a valid target container. |
| 316 | - name: set_returns_updated_document |
| 317 | type: bool |
| 318 | direction: output |
| 319 | description: True when Set returns the updated JSON document for the addressed mutation case. |
| 320 | - name: set_returns_not_found_error |
| 321 | type: bool |
| 322 | direction: output |
| 323 | description: True when Set returns `KeyPathNotFoundError` because the requested mutation path is not usable for the provided input. |
| 324 | - name: delete_path_is_provided |
| 325 | type: bool |
| 326 | direction: input |
| 327 | description: True when Delete is called with at least one path segment. |
| 328 | - name: delete_returns_empty_document_without_path |
| 329 | type: bool |
| 330 | direction: output |
| 331 | description: True when Delete returns an empty byte slice because no path segment was provided. |
| 332 | - name: delete_target_exists |
| 333 | type: bool |
| 334 | direction: input |
| 335 | description: True when the addressed Delete target exists and can be isolated in the input JSON. |
| 336 | - name: delete_input_is_unusable_for_requested_path |
| 337 | type: bool |
| 338 | direction: input |
| 339 | description: True when Delete cannot safely resolve the requested path because the input is malformed, truncated, or otherwise unusable for that deletion request. |
| 340 | - name: delete_returns_document_without_target |
| 341 | type: bool |
| 342 | direction: output |
| 343 | description: True when Delete returns the JSON document with the addressed value removed. |
| 344 | - name: delete_preserves_input_when_target_missing |
| 345 | type: bool |
| 346 | direction: output |
| 347 | description: True when Delete leaves the input unchanged because the addressed target is missing in otherwise usable input. |
| 348 | - name: delete_returns_original_input_on_unusable_input |
| 349 | type: bool |
| 350 | direction: output |
| 351 | description: True when Delete returns the original byte payload unchanged because the input is unusable for the requested deletion. |
| 352 | - name: delete_completes_without_panic |
| 353 | type: bool |
| 354 | direction: output |
| 355 | description: True when Delete completes the requested call path without panicking. |
| 356 | - name: returns_unsafe_string_view |
| 357 | type: bool |
| 358 | direction: output |
| 359 | description: True when GetUnsafeString returns the addressed raw value bytes mapped directly as a Go string without JSON unescaping. |
| 360 | - name: raw_boolean_literal_is_valid |
| 361 | type: bool |
| 362 | direction: input |
| 363 | description: True when ParseBoolean receives a valid boolean literal token. |
| 364 | - name: returns_parseboolean_value |
| 365 | type: bool |
| 366 | direction: output |
| 367 | description: True when ParseBoolean returns the corresponding Go bool value. |
| 368 | - name: returns_parseboolean_error |
| 369 | type: bool |
| 370 | direction: output |
| 371 | description: True when ParseBoolean returns the documented malformed-value error for an invalid boolean token. |
| 372 | - name: raw_float_token_is_well_formed |
| 373 | type: bool |
| 374 | direction: input |
| 375 | description: True when ParseFloat receives a well-formed floating-point number token. |
| 376 | - name: returns_parsefloat_value |
| 377 | type: bool |
| 378 | direction: output |
| 379 | description: True when ParseFloat returns the corresponding float64 value. |
| 380 | - name: returns_parsefloat_error |
| 381 | type: bool |
| 382 | direction: output |
| 383 | description: True when ParseFloat returns the documented malformed-value error for a malformed numeric token. |
| 384 | - name: raw_string_literal_is_well_formed |
| 385 | type: bool |
| 386 | direction: input |
| 387 | description: True when ParseString receives a well-formed raw JSON string literal body. |
| 388 | - name: returns_parsestring_value |
| 389 | type: bool |
| 390 | direction: output |
| 391 | description: True when ParseString returns the corresponding decoded Go string value. |
| 392 | - name: returns_parsestring_error |
| 393 | type: bool |
| 394 | direction: output |
| 395 | description: True when ParseString returns the documented malformed-value error for a malformed encoded string literal. |
| 396 | - name: raw_int_token_is_well_formed |
| 397 | type: bool |
| 398 | direction: input |
| 399 | description: True when ParseInt receives a syntactically well-formed integer token that does not overflow int64. |
| 400 | - name: raw_int_token_overflows_int64 |
| 401 | type: bool |
| 402 | direction: input |
| 403 | description: True when ParseInt receives an integer token whose magnitude exceeds the supported int64 range. |
| 404 | - name: returns_parseint_value |
| 405 | type: bool |
| 406 | direction: output |
| 407 | description: True when ParseInt returns the corresponding int64 value. |
| 408 | - name: returns_parseint_overflow_error |
| 409 | type: bool |
| 410 | direction: output |
| 411 | description: True when ParseInt returns the documented overflow error for an integer token outside the supported int64 range. |
| 412 | - name: returns_parseint_malformed_error |
| 413 | type: bool |
| 414 | direction: output |
| 415 | description: True when ParseInt returns the documented malformed-value error for a non-integer or otherwise malformed token. |
| 416 | - name: input_is_truncated_at_value_boundary |
| 417 | type: bool |
| 418 | direction: input |
| 419 | description: True when the JSON input is truncated at a value boundary where the value token ends at EOF with no closing delimiter (e.g., '{"a":1' with no closing brace). |
| 420 | - name: returns_error_for_truncated_value_boundary |
| 421 | type: bool |
| 422 | direction: output |
| 423 | description: True when Get returns a parse-related error or not-found result for input truncated at a value boundary, without panicking. |
| 424 | - name: input_is_truncated_mid_structure |
| 425 | type: bool |
| 426 | direction: input |
| 427 | description: True when the JSON input is truncated in the middle of a structural element where an object or array is opened but never closed. |
| 428 | - name: returns_error_for_truncated_mid_structure |
| 429 | type: bool |
| 430 | direction: output |
| 431 | description: True when Get returns a parse-related error for input truncated mid-structure, without panicking. |
| 432 | - name: input_is_truncated_mid_key |
| 433 | type: bool |
| 434 | direction: input |
| 435 | description: True when the JSON input is truncated in the middle of a key string where the key is not terminated by a closing quote. |
| 436 | - name: returns_error_for_truncated_mid_key |
| 437 | type: bool |
| 438 | direction: output |
| 439 | description: True when Get returns a parse-related error for input truncated mid-key, without panicking. |
| 440 | - name: tokenEnd_returns_len_data |
| 441 | type: bool |
| 442 | direction: input |
| 443 | description: True when the internal helper tokenEnd returns len(data) as a sentinel value indicating no delimiter was found in the remaining input. |
| 444 | - name: caller_bounds_checks_tokenEnd_sentinel |
| 445 | type: bool |
| 446 | direction: output |
| 447 | description: True when all callers of tokenEnd treat the len(data) sentinel as an end-of-input condition and do not use it as an unchecked array index. |
| 448 | - name: stringEnd_returns_negative_one |
| 449 | type: bool |
| 450 | direction: input |
| 451 | description: True when the internal helper stringEnd returns -1 indicating no closing quote was found. |
| 452 | - name: caller_handles_stringEnd_sentinel |
| 453 | type: bool |
| 454 | direction: output |
| 455 | description: True when all callers of stringEnd treat -1 as a malformed-string condition and do not proceed with normal value extraction. |
| 456 | - name: blockEnd_returns_negative_one |
| 457 | type: bool |
| 458 | direction: input |
| 459 | description: True when the internal helper blockEnd returns -1 indicating no matching closing bracket or brace was found. |
| 460 | - name: caller_handles_blockEnd_sentinel |
| 461 | type: bool |
| 462 | direction: output |
| 463 | description: True when all callers of blockEnd treat -1 as a malformed-structure condition and do not proceed with normal value extraction. |
| 464 | - name: path_segment_is_negative_array_index |
| 465 | type: bool |
| 466 | direction: input |
| 467 | description: True when the current path segment is a negative array index such as "[-1]". |
| 468 | - name: returns_not_found_for_negative_array_index |
| 469 | type: bool |
| 470 | direction: output |
| 471 | description: True when Get returns the defined not-found result for a negative array index because negative indexing is not supported. |
| 472 | - name: delete_input_is_truncated_at_value_boundary |
| 473 | type: bool |
| 474 | direction: input |
| 475 | description: True when Delete is called on input truncated at a value boundary where tokenEnd would return len(data) as a sentinel. |
| 476 | - name: delete_returns_original_input_on_truncated_value |
| 477 | type: bool |
| 478 | direction: output |
| 479 | description: True when Delete returns the original byte payload unchanged for input truncated at a value boundary. |
| 480 | - name: delete_completes_without_panic_on_truncated_value |
| 481 | type: bool |
| 482 | direction: output |
| 483 | description: True when Delete completes without panicking on input truncated at a value boundary. |
| 484 | - name: delete_discards_internalGet_error |
| 485 | type: bool |
| 486 | direction: input |
| 487 | description: True when Delete discards an error returned by internalGet (assigns to underscore) instead of using it to short-circuit. |
| 488 | - name: delete_propagates_internalGet_error |
| 489 | type: bool |
| 490 | direction: output |
| 491 | description: True when Delete uses an error returned by internalGet to short-circuit to the safe fallback path. |
| 492 | - name: delete_array_input_is_truncated |
| 493 | type: bool |
| 494 | direction: input |
| 495 | description: True when Delete is called with an array-element path on input where the array is truncated. |
| 496 | - name: delete_returns_original_input_on_truncated_array |
| 497 | type: bool |
| 498 | direction: output |
| 499 | description: True when Delete returns the original byte payload unchanged for truncated array input. |
| 500 | - name: delete_completes_without_panic_on_truncated_array |
| 501 | type: bool |
| 502 | direction: output |
| 503 | description: True when Delete completes without panicking on truncated array input. |
| 504 | - name: set_input_is_truncated |
| 505 | type: bool |
| 506 | direction: input |
| 507 | description: True when Set is called on truncated JSON input where path resolution encounters incomplete structural elements. |
| 508 | - name: set_returns_error_for_truncated_input |
| 509 | type: bool |
| 510 | direction: output |
| 511 | description: True when Set returns an error for truncated input rather than producing corrupt output or panicking. |
| 512 | - name: array_callback_returns_error |
| 513 | type: bool |
| 514 | direction: input |
| 515 | description: True when the Get call for an array element within ArrayEach returns an error. |
| 516 | - name: array_callback_error_is_propagated |
| 517 | type: bool |
| 518 | direction: output |
| 519 | description: True when ArrayEach propagates the element-level Get error to the caller. |
| 520 | - name: array_is_truncated_mid_element |
| 521 | type: bool |
| 522 | direction: input |
| 523 | description: True when ArrayEach encounters an array element that is truncated or incomplete. |
| 524 | - name: returns_error_for_truncated_array_element |
| 525 | type: bool |
| 526 | direction: output |
| 527 | description: True when ArrayEach returns a parse-related error for a truncated array element, without panicking. |
| 528 | - name: object_is_truncated_mid_entry |
| 529 | type: bool |
| 530 | direction: input |
| 531 | description: True when ObjectEach encounters an object entry whose value is truncated or incomplete. |
| 532 | - name: returns_error_for_truncated_object_entry |
| 533 | type: bool |
| 534 | direction: output |
| 535 | description: True when ObjectEach returns a parse-related error for a truncated object entry, without panicking. |
| 536 | - name: array_has_malformed_delimiter |
| 537 | type: bool |
| 538 | direction: input |
| 539 | description: True when ArrayEach encounters a malformed delimiter between array elements where a comma is expected but absent or wrong. |
| 540 | - name: returns_error_for_malformed_array_delimiter |
| 541 | type: bool |
| 542 | direction: output |
| 543 | description: True when ArrayEach returns MalformedArrayError for a malformed delimiter between array elements. |
| 544 | - name: delete_input_is_truncated_mid_structure |
| 545 | type: bool |
| 546 | direction: input |
| 547 | description: True when Delete is called on input truncated mid-structure with unclosed nested objects or arrays. |
| 548 | - name: delete_returns_original_input_on_truncated_structure |
| 549 | type: bool |
| 550 | direction: output |
| 551 | description: True when Delete returns the original byte payload unchanged for mid-structure truncated input. |
| 552 | - name: delete_completes_without_panic_on_truncated_structure |
| 553 | type: bool |
| 554 | direction: output |
| 555 | description: True when Delete completes without panicking on mid-structure truncated input. |
| 556 | - name: raw_boolean_literal_is_partial |
| 557 | type: bool |
| 558 | direction: input |
| 559 | description: True when ParseBoolean receives a partial boolean literal such as "tru" or "fals". |
| 560 | - name: returns_error_for_partial_boolean_literal |
| 561 | type: bool |
| 562 | direction: output |
| 563 | description: True when ParseBoolean returns MalformedValueError for a partial boolean literal. |
| 564 | - name: raw_int_token_is_at_int64_max_boundary |
| 565 | type: bool |
| 566 | direction: input |
| 567 | description: True when ParseInt receives an integer token at the exact int64 boundary values (max 9223372036854775807 or min -9223372036854775808). |
| 568 | - name: returns_correct_value_at_int64_boundary |
| 569 | type: bool |
| 570 | direction: output |
| 571 | description: True when ParseInt returns the correct int64 value at the exact boundary without overflow error. |
| 572 | - name: raw_int_token_is_at_int64_max_plus_one |
| 573 | type: bool |
| 574 | direction: input |
| 575 | description: True when ParseInt receives an integer token exactly one beyond the int64 range (9223372036854775808 or -9223372036854775809). |
| 576 | - name: returns_overflow_at_int64_max_plus_one |
| 577 | type: bool |
| 578 | direction: output |
| 579 | description: True when ParseInt returns OverflowIntegerError for an integer token exactly one beyond the int64 range. |
| 580 | - name: raw_string_has_truncated_escape_sequence |
| 581 | type: bool |
| 582 | direction: input |
| 583 | description: True when ParseString receives a string containing a truncated escape sequence such as a lone backslash or incomplete unicode escape like '\u00'. |
| 584 | - name: returns_error_for_truncated_escape_sequence |
| 585 | type: bool |
| 586 | direction: output |
| 587 | description: True when ParseString returns MalformedValueError for a truncated escape sequence. |
| 588 | - name: raw_string_has_missing_low_surrogate |
| 589 | type: bool |
| 590 | direction: input |
| 591 | description: True when ParseString encounters a UTF-16 high surrogate escape not followed by a valid low surrogate escape. |
| 592 | - name: returns_error_for_missing_low_surrogate |
| 593 | type: bool |
| 594 | direction: output |
| 595 | description: True when ParseString returns MalformedValueError for a high surrogate without a following low surrogate. |
| 596 | - name: raw_string_has_invalid_low_surrogate |
| 597 | type: bool |
| 598 | direction: input |
| 599 | description: True when ParseString encounters a UTF-16 high surrogate followed by a unicode escape whose value is below the low surrogate range. |
| 600 | - name: returns_error_for_invalid_low_surrogate |
| 601 | type: bool |
| 602 | direction: output |
| 603 | description: True when ParseString returns MalformedValueError for a high surrogate followed by an invalid low surrogate. |
| 604 | - name: raw_string_has_backslash_at_end |
| 605 | type: bool |
| 606 | direction: input |
| 607 | description: True when ParseString encounters a string ending with a lone backslash with no character after it. |
| 608 | - name: returns_error_for_backslash_at_end |
| 609 | type: bool |
| 610 | direction: output |
| 611 | description: True when ParseString returns MalformedValueError for a string ending with a lone backslash. |
| 612 | - name: parseint_input_is_empty |
| 613 | type: bool |
| 614 | direction: input |
| 615 | description: True when ParseInt receives an empty byte slice. |
| 616 | - name: returns_parseint_malformed_for_empty |
| 617 | type: bool |
| 618 | direction: output |
| 619 | description: True when ParseInt returns MalformedValueError for an empty byte slice. |
| 620 | - name: parsefloat_input_is_empty |
| 621 | type: bool |
| 622 | direction: input |
| 623 | description: True when ParseFloat receives an empty byte slice. |
| 624 | - name: returns_parsefloat_malformed_for_empty |
| 625 | type: bool |
| 626 | direction: output |
| 627 | description: True when ParseFloat returns MalformedValueError for an empty byte slice. |
| 628 | - name: parseboolean_input_is_empty |
| 629 | type: bool |
| 630 | direction: input |
| 631 | description: True when ParseBoolean receives an empty byte slice. |
| 632 | - name: returns_parseboolean_malformed_for_empty |
| 633 | type: bool |
| 634 | direction: output |
| 635 | description: True when ParseBoolean returns MalformedValueError for an empty byte slice. |
| 636 | - name: parsestring_input_is_empty |
| 637 | type: bool |
| 638 | direction: input |
| 639 | description: True when ParseString receives an empty byte slice. |
| 640 | - name: returns_parsestring_identity_for_empty |
| 641 | type: bool |
| 642 | direction: output |
| 643 | description: True when ParseString returns an empty Go string without error for an empty byte slice. |
| 644 | - name: set_path_points_beyond_eof |
| 645 | type: bool |
| 646 | direction: input |
| 647 | description: True when Set is called with a path that resolves to a location beyond the end of available data. |
| 648 | - name: set_returns_error_for_path_beyond_eof |
| 649 | type: bool |
| 650 | direction: output |
| 651 | description: True when Set returns an error for a path that resolves beyond the end of available data. |
| 652 | - name: set_target_is_nested_in_existing_structure |
| 653 | type: bool |
| 654 | direction: input |
| 655 | description: True when Set is called with a multi-level path where intermediate levels exist but the leaf does not. |
| 656 | - name: set_performs_nested_mutation_correctly |
| 657 | type: bool |
| 658 | direction: output |
| 659 | description: True when Set correctly creates missing nested structure and inserts the value at the correct location. |
| 660 | - name: set_called_without_path |
| 661 | type: bool |
| 662 | direction: input |
| 663 | description: True when Set is called without any key path segments. |
| 664 | data_constraint: |
| 665 | domain: integer |
| 666 | condition: set_path_segment_count == 0 |
| 667 | parameters: |
| 668 | - name: set_path_segment_count |
| 669 | type: int |
| 670 | constraint: '>= 0' |
| 671 | - name: set_returns_error_without_path |
| 672 | type: bool |
| 673 | direction: output |
| 674 | description: True when Set returns KeyPathNotFoundError because no path segment was provided. |
| 675 | - name: getstring_input_is_malformed |
| 676 | type: bool |
| 677 | direction: input |
| 678 | description: True when GetString is called on malformed input where the underlying Get call returns an error. |
| 679 | - name: returns_getstring_error_for_malformed |
| 680 | type: bool |
| 681 | direction: output |
| 682 | description: True when GetString propagates the error from Get for malformed input. |
| 683 | - name: getstring_value_has_truncated_escape |
| 684 | type: bool |
| 685 | direction: input |
| 686 | description: True when GetString addresses a JSON string value containing a truncated escape sequence. |
| 687 | - name: returns_getstring_error_for_truncated_escape |
| 688 | type: bool |
| 689 | direction: output |
| 690 | description: True when GetString returns an error from ParseString for a truncated escape sequence. |
| 691 | - name: getstring_addressed_value_is_not_string |
| 692 | type: bool |
| 693 | direction: input |
| 694 | description: True when GetString addresses a value that is not a JSON string. |
| 695 | - name: returns_getstring_type_mismatch_error |
| 696 | type: bool |
| 697 | direction: output |
| 698 | description: True when GetString returns a type-mismatch error for a non-string addressed value. |
| 699 | - name: getstring_input_is_empty |
| 700 | type: bool |
| 701 | direction: input |
| 702 | description: True when GetString is called on empty input. |
| 703 | - name: returns_getstring_error_for_empty_input |
| 704 | type: bool |
| 705 | direction: output |
| 706 | description: True when GetString returns not-found or error for empty input. |
| 707 | - name: getint_input_is_malformed |
| 708 | type: bool |
| 709 | direction: input |
| 710 | description: True when GetInt is called on malformed input where the underlying Get call returns an error. |
| 711 | - name: returns_getint_error_for_malformed |
| 712 | type: bool |
| 713 | direction: output |
| 714 | description: True when GetInt propagates the error from Get for malformed input. |
| 715 | - name: getint_value_overflows_int64 |
| 716 | type: bool |
| 717 | direction: input |
| 718 | description: True when GetInt addresses a JSON number token whose magnitude exceeds the int64 range. |
| 719 | - name: returns_getint_overflow_error |
| 720 | type: bool |
| 721 | direction: output |
| 722 | description: True when GetInt returns the documented overflow error for a value exceeding int64 range. |
| 723 | - name: getint_addressed_value_is_not_number |
| 724 | type: bool |
| 725 | direction: input |
| 726 | description: True when GetInt addresses a value that is not a JSON number. |
| 727 | - name: returns_getint_type_mismatch_error |
| 728 | type: bool |
| 729 | direction: output |
| 730 | description: True when GetInt returns a type-mismatch error for a non-number addressed value. |
| 731 | - name: getint_input_is_empty |
| 732 | type: bool |
| 733 | direction: input |
| 734 | description: True when GetInt is called on empty input. |
| 735 | - name: returns_getint_error_for_empty_input |
| 736 | type: bool |
| 737 | direction: output |
| 738 | description: True when GetInt returns not-found or error for empty input. |
| 739 | - name: getboolean_addressed_value_is_partial_literal |
| 740 | type: bool |
| 741 | direction: input |
| 742 | description: True when GetBoolean addresses a value that is a partial boolean literal due to truncation. |
| 743 | - name: returns_getboolean_error_for_partial |
| 744 | type: bool |
| 745 | direction: output |
| 746 | description: True when GetBoolean returns an error from type classification or ParseBoolean for a partial boolean literal. |
| 747 | - name: getunsafestring_input_is_malformed |
| 748 | type: bool |
| 749 | direction: input |
| 750 | description: True when GetUnsafeString is called on malformed input where the underlying Get call returns an error. |
| 751 | - name: returns_getunsafestring_error_for_malformed |
| 752 | type: bool |
| 753 | direction: output |
| 754 | description: True when GetUnsafeString propagates the error from Get for malformed input. |
| 755 | - name: getunsafestring_input_is_empty |
| 756 | type: bool |
| 757 | direction: input |
| 758 | description: True when GetUnsafeString is called on empty input. |
| 759 | - name: returns_getunsafestring_error_for_empty |
| 760 | type: bool |
| 761 | direction: output |
| 762 | description: True when GetUnsafeString returns not-found or error for empty input. |
| 763 | - name: getunsafestring_input_is_truncated_at_value_boundary |
| 764 | type: bool |
| 765 | direction: input |
| 766 | description: True when GetUnsafeString is called on input truncated at a value boundary. |
| 767 | - name: returns_getunsafestring_error_for_truncated_value |
| 768 | type: bool |
| 769 | direction: output |
| 770 | description: True when GetUnsafeString propagates the error from Get for input truncated at a value boundary. |
| 771 | - name: arrayeach_input_is_truncated_at_value_boundary |
| 772 | type: bool |
| 773 | direction: input |
| 774 | description: True when ArrayEach is called on input truncated at a value boundary. |
| 775 | - name: returns_error_for_arrayeach_truncated_value |
| 776 | type: bool |
| 777 | direction: output |
| 778 | description: True when ArrayEach returns an error for input truncated at a value boundary, without panicking. |
| 779 | - name: objecteach_input_is_truncated_mid_structure |
| 780 | type: bool |
| 781 | direction: input |
| 782 | description: True when ObjectEach is called on input truncated mid-structure where the object or a nested structure is not closed. |
| 783 | - name: returns_error_for_objecteach_truncated_structure |
| 784 | type: bool |
| 785 | direction: output |
| 786 | description: True when ObjectEach returns an error for truncated mid-structure input, without panicking. |
| 787 | - name: eachkey_tokenEnd_sentinel_reached |
| 788 | type: bool |
| 789 | direction: input |
| 790 | description: True when EachKey encounters a tokenEnd sentinel value during multi-path scanning. |
| 791 | - name: eachkey_handles_sentinel_safely |
| 792 | type: bool |
| 793 | direction: output |
| 794 | description: True when EachKey treats the tokenEnd sentinel as an end-of-input condition and returns safely. |
| 795 | - name: get_called_twice_with_same_input |
| 796 | type: bool |
| 797 | direction: input |
| 798 | description: True when Get is called twice with identical JSON input and identical key paths. |
| 799 | - name: get_returns_identical_results |
| 800 | type: bool |
| 801 | direction: output |
| 802 | description: True when Get returns identical value slices, value types, offsets, and error values on both calls. |
| 803 | - name: get_called_on_valid_input |
| 804 | type: bool |
| 805 | direction: input |
| 806 | description: True when Get is called on a non-nil JSON byte slice. |
| 807 | - name: get_does_not_mutate_input |
| 808 | type: bool |
| 809 | direction: output |
| 810 | description: True when Get does not mutate the input byte slice during the call. |
| 811 | - name: get_input_is_nil |
| 812 | type: bool |
| 813 | direction: input |
| 814 | description: True when Get is called with a nil byte slice as input. |
| 815 | - name: get_returns_safe_result_for_nil |
| 816 | type: bool |
| 817 | direction: output |
| 818 | description: True when Get returns a not-found or error result without panicking for nil input. |
| 819 | - name: get_input_is_deeply_nested |
| 820 | type: bool |
| 821 | direction: input |
| 822 | description: True when Get is called on JSON with deeply nested structures (64+ levels). |
| 823 | - name: get_handles_deep_nesting_safely |
| 824 | type: bool |
| 825 | direction: output |
| 826 | description: True when Get returns a correct result or error for deeply nested input without panicking. |
| 827 | - name: getstring_called_twice_with_same_input |
| 828 | type: bool |
| 829 | direction: input |
| 830 | description: True when GetString is called twice with identical JSON input and identical key paths. |
| 831 | - name: getstring_returns_identical_results |
| 832 | type: bool |
| 833 | direction: output |
| 834 | description: True when GetString returns identical decoded string values and error values on both calls. |
| 835 | - name: getstring_input_is_nil |
| 836 | type: bool |
| 837 | direction: input |
| 838 | description: True when GetString is called with a nil byte slice as input. |
| 839 | - name: getstring_returns_safe_result_for_nil |
| 840 | type: bool |
| 841 | direction: output |
| 842 | description: True when GetString returns an empty string and error without panicking for nil input. |
| 843 | - name: getstring_input_has_escaped_unicode |
| 844 | type: bool |
| 845 | direction: input |
| 846 | description: True when GetString addresses a JSON string containing escaped Unicode sequences. |
| 847 | - name: getstring_decodes_and_preserves_semantics |
| 848 | type: bool |
| 849 | direction: output |
| 850 | description: True when GetString decodes escaped Unicode to correct Go string runes preserving semantic equivalence. |
| 851 | - name: getstring_input_has_unicode_edge_cases |
| 852 | type: bool |
| 853 | direction: input |
| 854 | description: True when GetString addresses a JSON string containing Unicode edge cases like BOM or ZWJ. |
| 855 | - name: getstring_handles_unicode_edges_safely |
| 856 | type: bool |
| 857 | direction: output |
| 858 | description: True when GetString handles Unicode edge cases correctly or returns a well-defined error. |
| 859 | - name: typed_getter_called_twice_with_same_input |
| 860 | type: bool |
| 861 | direction: input |
| 862 | description: True when GetInt, GetFloat, or GetBoolean is called twice with identical input. |
| 863 | - name: typed_getter_returns_identical_results |
| 864 | type: bool |
| 865 | direction: output |
| 866 | description: True when typed getters return identical typed values and error values on both calls. |
| 867 | - name: typed_getter_input_is_nil |
| 868 | type: bool |
| 869 | direction: input |
| 870 | description: True when GetInt, GetFloat, or GetBoolean is called with a nil byte slice. |
| 871 | - name: typed_getter_returns_safe_result_for_nil |
| 872 | type: bool |
| 873 | direction: output |
| 874 | description: True when typed getters return zero value and error without panicking for nil input. |
| 875 | - name: getint_input_has_large_number_edge_case |
| 876 | type: bool |
| 877 | direction: input |
| 878 | description: True when GetInt addresses a JSON number with edge-case formatting like leading zeros or max-length digit strings. |
| 879 | - name: getint_handles_large_numbers_safely |
| 880 | type: bool |
| 881 | direction: output |
| 882 | description: True when GetInt returns correct int64 or well-defined error for large-number edge cases. |
| 883 | - name: traversal_called_twice_with_same_input |
| 884 | type: bool |
| 885 | direction: input |
| 886 | description: True when ArrayEach, ObjectEach, or EachKey is called twice with identical input. |
| 887 | - name: traversal_returns_identical_results |
| 888 | type: bool |
| 889 | direction: output |
| 890 | description: True when traversal callbacks are invoked in the same order with same values on both calls. |
| 891 | - name: traversal_input_is_nil |
| 892 | type: bool |
| 893 | direction: input |
| 894 | description: True when ArrayEach, ObjectEach, or EachKey is called with a nil byte slice. |
| 895 | - name: traversal_returns_safe_result_for_nil |
| 896 | type: bool |
| 897 | direction: output |
| 898 | description: True when traversal returns error without invoking callbacks and without panicking for nil input. |
| 899 | - name: traversal_input_is_deeply_nested |
| 900 | type: bool |
| 901 | direction: input |
| 902 | description: True when ArrayEach or ObjectEach is called on JSON with deeply nested structures. |
| 903 | - name: traversal_handles_deep_nesting_safely |
| 904 | type: bool |
| 905 | direction: output |
| 906 | description: True when traversal handles deeply nested input safely without panicking or stack overflowing. |
| 907 | - name: set_applied_twice_with_same_args |
| 908 | type: bool |
| 909 | direction: input |
| 910 | description: True when Set is called twice on the same input with the same value and key path. |
| 911 | - name: set_second_call_produces_same_result |
| 912 | type: bool |
| 913 | direction: output |
| 914 | description: True when the second Set call produces the same output as the first application. |
| 915 | - name: mutation_input_is_nil |
| 916 | type: bool |
| 917 | direction: input |
| 918 | description: True when Set or Delete is called with a nil byte slice. |
| 919 | - name: mutation_returns_safe_result_for_nil |
| 920 | type: bool |
| 921 | direction: output |
| 922 | description: True when Set returns error and Delete returns nil/empty without panicking for nil input. |
| 923 | - name: mutation_input_has_unicode_keys |
| 924 | type: bool |
| 925 | direction: input |
| 926 | description: True when Set or Delete is called with key paths containing Unicode characters. |
| 927 | - name: mutation_handles_unicode_keys_safely |
| 928 | type: bool |
| 929 | direction: output |
| 930 | description: True when Set or Delete correctly resolves Unicode key paths or returns well-defined error. |
| 931 | - name: getunsafestring_called_twice_with_same_input |
| 932 | type: bool |
| 933 | direction: input |
| 934 | description: True when GetUnsafeString is called twice with identical input. |
| 935 | - name: getunsafestring_returns_identical_results |
| 936 | type: bool |
| 937 | direction: output |
| 938 | description: True when GetUnsafeString returns identical raw string values on both calls. |
| 939 | - name: getunsafestring_input_is_nil |
| 940 | type: bool |
| 941 | direction: input |
| 942 | description: True when GetUnsafeString is called with a nil byte slice. |
| 943 | - name: getunsafestring_returns_safe_result_for_nil |
| 944 | type: bool |
| 945 | direction: output |
| 946 | description: True when GetUnsafeString returns empty string and error without panicking for nil input. |
| 947 | - name: getunsafestring_input_has_unicode_edge_cases |
| 948 | type: bool |
| 949 | direction: input |
| 950 | description: True when GetUnsafeString addresses a value with Unicode edge cases. |
| 951 | - name: getunsafestring_handles_unicode_edges_safely |
| 952 | type: bool |
| 953 | direction: output |
| 954 | description: True when GetUnsafeString returns raw bytes as Go string without corruption for Unicode edge cases. |
| 955 | - name: parse_helper_called_twice_with_same_input |
| 956 | type: bool |
| 957 | direction: input |
| 958 | description: True when a Parse helper is called twice with identical byte input. |
| 959 | - name: parse_helper_returns_identical_results |
| 960 | type: bool |
| 961 | direction: output |
| 962 | description: True when Parse helpers return identical typed values and error values on both calls. |
| 963 | - name: parse_helper_input_is_nil |
| 964 | type: bool |
| 965 | direction: input |
| 966 | description: True when a Parse helper is called with a nil byte slice. |
| 967 | - name: parse_helper_returns_safe_result_for_nil |
| 968 | type: bool |
| 969 | direction: output |
| 970 | description: True when Parse helpers return zero value and error (or empty string) without panicking for nil input. |
| 971 | - name: parsestring_input_has_standard_escapes |
| 972 | type: bool |
| 973 | direction: input |
| 974 | description: True when ParseString input contains standard JSON escape sequences. |
| 975 | - name: parsestring_roundtrip_preserves_semantics |
| 976 | type: bool |
| 977 | direction: output |
| 978 | description: True when ParseString decoded string preserves semantic equivalence with original JSON encoding. |
| 979 | - name: parseint_input_has_edge_case_number |
| 980 | type: bool |
| 981 | direction: input |
| 982 | description: True when ParseInt receives an edge-case numeric token like negative zero or very long digit strings. |
| 983 | - name: parseint_handles_edge_numbers_safely |
| 984 | type: bool |
| 985 | direction: output |
| 986 | description: True when ParseInt returns correct int64 or well-defined error for edge-case numbers. |