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

Function TestLargeArray

parser_error_test.go:173–190  ·  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

171// Verifies: SYS-REQ-008 [boundary]
172// MCDC SYS-REQ-008: N/A
173func TestLargeArray(t *testing.T) {
174 var sb strings.Builder
175 //build data
176 sb.WriteString(`[`)
177 for i := 0; i < 127; i++ {
178 fmt.Fprintf(&sb, `%d`, i)
179 if i < 127 {
180 sb.WriteString(",")
181 }
182 }
183 sb.WriteString(`]`)
184 keys := [][]string{[]string{`[1]`}}
185
186 data := []byte(sb.String())
187 EachKey(data, func(offset int, value []byte, dt ValueType, err error) {
188 return
189 }, keys...)
190}
191
192// Verifies: SYS-REQ-008 [boundary]
193// MCDC SYS-REQ-008: N/A

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…