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

Function TestStress_ArrayEach_NestedEmpty

dead_code_audit_test.go:610–617  ·  view source on GitHub ↗

============================================================================= STRESS: Ensure no infinite loops or panics on pathological inputs ============================================================================= Verifies: SYS-REQ-006 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

608
609// Verifies: SYS-REQ-006 [boundary]
610func TestStress_ArrayEach_NestedEmpty(t *testing.T) {
611 _, err := ArrayEach([]byte(`[[],[]]`), func(value []byte, dataType ValueType, offset int, err error) {
612 // nested arrays
613 })
614 if err != nil {
615 t.Fatalf("unexpected error: %v", err)
616 }
617}
618
619// Verifies: SYS-REQ-008 [boundary]
620func TestStress_EachKey_LargeNestedSkip(t *testing.T) {

Callers

nothing calls this directly

Calls 1

ArrayEachFunction · 0.85

Tested by

no test coverage detected