MCPcopy
hub / github.com/rs/zerolog / Write

Method Write

diode/diode_test.go:92–96  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

90type SlowWriter struct{}
91
92func (rw *SlowWriter) Write(p []byte) (n int, err error) {
93 time.Sleep(200 * time.Millisecond)
94 fmt.Print(string(p))
95 return len(p), nil
96}
97
98func TestFatalWithFilteredLevelWriter(t *testing.T) {
99 if os.Getenv("TEST_FATAL_SLOW") == "1" {

Callers

nothing calls this directly

Calls 1

PrintMethod · 0.80

Tested by

no test coverage detected