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

Function toArray

parser_test.go:16–22  ·  view source on GitHub ↗

Test helper for SYS-REQ-006.

(data []byte)

Source from the content-addressed store, hash-verified

14
15// Test helper for SYS-REQ-006.
16func toArray(data []byte) (result [][]byte) {
17 ArrayEach(data, func(value []byte, dataType ValueType, offset int, err error) {
18 result = append(result, value)
19 })
20
21 return
22}
23
24// Test helper for SYS-REQ-006 and SYS-REQ-008.
25func toStringArray(data []byte) (result []string) {

Callers

nothing calls this directly

Calls 1

ArrayEachFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…