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

Function TestGetEmptyInputWithPath

deep_spec_test.go:1012–1019  ·  view source on GitHub ↗

Verifies: SYS-REQ-019 [boundary] Empty input with key path returns KeyPathNotFoundError.

(t *testing.T)

Source from the content-addressed store, hash-verified

1010// Verifies: SYS-REQ-019 [boundary]
1011// Empty input with key path returns KeyPathNotFoundError.
1012func TestGetEmptyInputWithPath(t *testing.T) {
1013 _, dt, off, err := Get([]byte(``), "a")
1014 if err == nil {
1015 t.Fatal("Get(empty, path) should return error")
1016 }
1017 _ = dt
1018 _ = off
1019}
1020
1021// Verifies: SYS-REQ-020 [boundary]
1022// Object key resolved at correct scope.

Callers

nothing calls this directly

Calls 1

GetFunction · 0.85

Tested by

no test coverage detected