MCPcopy Create free account
hub / github.com/buger/jsonparser / TestGetStringEmptyInput

Function TestGetStringEmptyInput

deep_spec_test.go:715–720  ·  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

713// Verifies: SYS-REQ-074 [boundary]
714// GetString on empty input shall return error.
715func TestGetStringEmptyInput(t *testing.T) {
716 _, err := GetString([]byte(``), "a")
717 if err == nil {
718 t.Fatal("GetString on empty input should return error")
719 }
720}
721
722// =============================================================================
723// 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