MCPcopy
hub / github.com/uber-go/zap / TestMockClock_Add_negative

Function TestMockClock_Add_negative

internal/ztest/clock_test.go:77–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

75}
76
77func TestMockClock_Add_negative(t *testing.T) {
78 clock := NewMockClock()
79 assert.Panics(t, func() { clock.Add(-1) })
80}

Callers

nothing calls this directly

Calls 2

AddMethod · 0.95
NewMockClockFunction · 0.85

Tested by

no test coverage detected