MCPcopy Create free account
hub / github.com/bracesdev/errtrace / Write

Method Write

cmd/errtrace/main_test.go:963–968  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

961type testWriter struct{ T testing.TB }
962
963func (w testWriter) Write(p []byte) (int, error) {
964 for _, line := range bytes.Split(p, []byte{'\n'}) {
965 w.T.Logf("%s", line)
966 }
967 return len(p), nil
968}

Callers 2

processFileMethod · 0.80
rewriteFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected