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

Function TestArrayOutOfBounds

parser_error_test.go:194–211  ·  view source on GitHub ↗

Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A

(t *testing.T)

Source from the content-addressed store, hash-verified

192// Verifies: SYS-REQ-008 [boundary]
193// MCDC SYS-REQ-008: N/A
194func TestArrayOutOfBounds(t *testing.T) {
195 var sb strings.Builder
196 //build data
197 sb.WriteString(`[`)
198 for i := 0; i < 61; i++ {
199 fmt.Fprintf(&sb, `%d`, i)
200 if i < 61 {
201 sb.WriteString(",")
202 }
203 }
204 sb.WriteString(`]`)
205 keys := [][]string{[]string{`[128]`}}
206
207 data := []byte(sb.String())
208 EachKey(data, func(offset int, value []byte, dt ValueType, err error) {
209 return
210 }, keys...)
211}

Callers

nothing calls this directly

Calls 2

EachKeyFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…