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

Function BenchmarkGabsMedium

benchmark/benchmark_medium_payload_test.go:283–299  ·  view source on GitHub ↗

* github.com/Jeffail/gabs */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A Verifies: STK-REQ-007 MCDC STK-REQ-007: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

281// Verifies: STK-REQ-007
282// MCDC STK-REQ-007: N/A
283func BenchmarkGabsMedium(b *testing.B) {
284 for i := 0; i < b.N; i++ {
285 json, _ := gabs.ParseJSON(mediumFixture)
286 person := json.Path("person")
287 nothing(
288 person.Path("name.fullName").Data().(string),
289 person.Path("github.followers").Data().(float64),
290 )
291
292 json.Path("company").ChildrenMap()
293
294 arr, _ := person.Path("gravatar.avatars.url").Children()
295 for _, el := range arr {
296 nothing(el.String())
297 }
298 }
299}
300
301/*
302 github.com/bitly/go-simplejson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…