MCPcopy
hub / github.com/buger/jsonparser / TestGetStringEmptyInput

Function TestGetStringEmptyInput

deep_spec_test.go:701–706  ·  view source on GitHub ↗

Verifies: SYS-REQ-074 [boundary] GetString on empty input shall return error.

(t *testing.T)

Source from the content-addressed store, hash-verified

699// Verifies: SYS-REQ-074 [boundary]
700// GetString on empty input shall return error.
701func TestGetStringEmptyInput(t *testing.T) {
702 _, err := GetString([]byte(``), "a")
703 if err == nil {
704 t.Fatal("GetString on empty input should return error")
705 }
706}
707
708// =============================================================================
709// GetInt edge cases (SYS-REQ-075, SYS-REQ-076, SYS-REQ-077, SYS-REQ-078)

Callers

nothing calls this directly

Calls 1

GetStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…