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

Function toArray

parser_test.go:15–21  ·  view source on GitHub ↗

Test helper for SYS-REQ-006.

(data []byte)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ArrayEachFunction · 0.85

Tested by

no test coverage detected