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

Function TestDeleteNoPath

deep_spec_test.go:1126–1132  ·  view source on GitHub ↗

============================================================================= Delete no-path edge case ============================================================================= Verifies: SYS-REQ-035 [boundary] Delete with no keys returns empty slice.

(t *testing.T)

Source from the content-addressed store, hash-verified

1124// Verifies: SYS-REQ-035 [boundary]
1125// Delete with no keys returns empty slice.
1126func TestDeleteNoPath(t *testing.T) {
1127 data := []byte(`{"a":1}`)
1128 result := Delete(data)
1129 if len(result) != 0 {
1130 t.Fatalf("Delete with no keys = %q, want empty", string(result))
1131 }
1132}
1133
1134// Verifies: SYS-REQ-052 [malformed]
1135// MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=T => TRUE

Callers

nothing calls this directly

Calls 1

DeleteFunction · 0.85

Tested by

no test coverage detected