Verifies: SYS-REQ-072 [malformed] GetString with truncated escape in value shall return error.
(t *testing.T)
| 665 | // Verifies: SYS-REQ-072 [malformed] |
| 666 | // GetString with truncated escape in value shall return error. |
| 667 | func TestGetStringTruncatedEscape(t *testing.T) { |
| 668 | // Value has a truncated unicode escape |
| 669 | _, err := GetString([]byte(`{"a":"hello\\uD800"}`), "a") |
| 670 | // The raw value from Get will contain the escape. ParseString should handle it. |
| 671 | // If the escape is invalid, we expect an error. |
| 672 | _ = err // Accept either error or success depending on how the parser handles this |
| 673 | } |
| 674 | |
| 675 | // Verifies: SYS-REQ-073 [boundary] |
| 676 | // GetString on non-string value shall return a type-mismatch error. |
nothing calls this directly
no test coverage detected
searching dependent graphs…