diff --git a/log/log.go b/log/log.go index 53513a9..53be6cf 100644 --- a/log/log.go +++ b/log/log.go @@ -20,6 +20,12 @@ const ( debug ) +// A common interface to access the Fatal method of +// both testing.B and testing.T. +type Fataler interface { + Fatal(args ...interface{}) +} + func (p priority) String() string { switch p { case fatal: