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

Function TestSetNoPath

deep_spec_test.go:381–386  ·  view source on GitHub ↗

Verifies: SYS-REQ-070 [boundary] Set without any path shall return KeyPathNotFoundError.

(t *testing.T)

Source from the content-addressed store, hash-verified

379// Verifies: SYS-REQ-070 [boundary]
380// Set without any path shall return KeyPathNotFoundError.
381func TestSetNoPath(t *testing.T) {
382 _, err := Set([]byte(`{"a":1}`), []byte(`"v"`))
383 if !errors.Is(err, KeyPathNotFoundError) {
384 t.Fatalf("Set with no path error = %v, want %v", err, KeyPathNotFoundError)
385 }
386}
387
388// =============================================================================
389// ArrayEach error propagation and truncation (SYS-REQ-052, SYS-REQ-053, SYS-REQ-055)

Callers

nothing calls this directly

Calls 1

SetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…