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

Function TestEvent_writeWithNil

event_test.go:49–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestEvent_writeWithNil(t *testing.T) {
50 var e *Event = nil
51 got := e.write()
52
53 var want *Event = nil
54 if got != nil {
55 t.Errorf("Event.write() = %v, want %v", got, want)
56 }
57}
58
59type loggableObject struct {
60 member string

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected