MCPcopy
hub / github.com/perkeep/perkeep / parseJSON

Function parseJSON

pkg/search/handler_test.go:79–86  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

77)
78
79func parseJSON(s string) map[string]interface{} {
80 m := make(map[string]interface{})
81 err := json.Unmarshal([]byte(s), &m)
82 if err != nil {
83 panic(err)
84 }
85 return m
86}
87
88// addToClockOrigin returns the given Duration added
89// to test.ClockOrigin, in UTC, and RFC3339Nano formatted.

Callers 2

initTestsFunction · 0.70
testMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected