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

Function toStringArray

parser_test.go:24–30  ·  view source on GitHub ↗

Test helper for SYS-REQ-006 and SYS-REQ-008.

(data []byte)

Source from the content-addressed store, hash-verified

22
23// Test helper for SYS-REQ-006 and SYS-REQ-008.
24func toStringArray(data []byte) (result []string) {
25 ArrayEach(data, func(value []byte, dataType ValueType, offset int, err error) {
26 result = append(result, string(value))
27 })
28
29 return
30}
31
32type GetTest struct {
33 desc string

Callers 1

TestGetSliceFunction · 0.85

Calls 1

ArrayEachFunction · 0.85

Tested by

no test coverage detected