MCPcopy Index your code
hub / github.com/perkeep/perkeep / prettyJSON

Function prettyJSON

pkg/search/query_test.go:1814–1820  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

1812}
1813
1814func prettyJSON(v interface{}) string {
1815 b, err := json.MarshalIndent(v, "", " ")
1816 if err != nil {
1817 panic(err)
1818 }
1819 return string(b)
1820}
1821
1822func TestPlannedQuery(t *testing.T) {
1823 tests := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected