MCPcopy
hub / github.com/perkeep/perkeep / prettyPrint

Function prettyPrint

pkg/serverinit/serverinit_test.go:76–82  ·  view source on GitHub ↗
(t *testing.T, w io.Writer, v interface{})

Source from the content-addressed store, hash-verified

74}
75
76func prettyPrint(t *testing.T, w io.Writer, v interface{}) {
77 out, err := json.MarshalIndent(v, "", " ")
78 if err != nil {
79 t.Fatal(err)
80 }
81 w.Write(out)
82}
83
84func TestConfigs(t *testing.T) {
85 dir, err := os.Open("testdata")

Callers 1

compareConfigurationsFunction · 0.70

Calls 2

FatalMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected