MCPcopy Index your code
hub / github.com/buger/jsonparser / TestGetUnsafeStringEmptyInput

Function TestGetUnsafeStringEmptyInput

deep_spec_test.go:798–803  ·  view source on GitHub ↗

Verifies: SYS-REQ-081 [boundary] GetUnsafeString on empty input shall return error.

(t *testing.T)

Source from the content-addressed store, hash-verified

796// Verifies: SYS-REQ-081 [boundary]
797// GetUnsafeString on empty input shall return error.
798func TestGetUnsafeStringEmptyInput(t *testing.T) {
799 _, err := GetUnsafeString([]byte(``), "a")
800 if err == nil {
801 t.Fatal("GetUnsafeString on empty input should return error")
802 }
803}
804
805// Verifies: SYS-REQ-082 [malformed]
806// GetUnsafeString on truncated-at-value-boundary input shall return error.

Callers

nothing calls this directly

Calls 1

GetUnsafeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…