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

Function BenchmarkDeleteNested

benchmark/benchmark_delete_test.go:22–29  ·  view source on GitHub ↗

Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

20// Verifies: STK-REQ-005
21// MCDC STK-REQ-005: N/A
22func BenchmarkDeleteNested(b *testing.B) {
23 b.ReportAllocs()
24 b.ResetTimer()
25 for i := 0; i < b.N; i++ {
26 data1 := []byte(`{ "instanceId": 1, "ip": "10.10.10.10", "services": [ { "id": 1, "name": "srv1" } ] }`)
27 _ = jsonparser.Delete(data1, "services", "id")
28 }
29}
30
31// Verifies: STK-REQ-005
32// MCDC STK-REQ-005: N/A

Callers

nothing calls this directly

Calls 1

DeleteFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…