467
468
// DPanic implements log.Logger.
469
>
func (tl *TestLogger) DPanic(msg string, tags ...tag.Tag) {
testlogger.go
470
>
tl.state.mu.RLock()
471
>
defer tl.state.mu.RUnlock()
472
>
if tl.state.mu.closed {
473
return
474
}
476
>
tl.recordExpectationMatches(DPanic, msg, tags)
477
>
// note, actual panic'ing in wrapped is turned off so we can control.
478
>
tl.wrapped.DPanic(msg, tags...)
479
>
if tl.state.failOnDPanic.Load() && tl.shouldFailTest(DPanic, msg, tags) {
480
tl.state.t.Helper()
481
tl.failTest(DPanic, msg, tags...)