go-log/discard_router_test.go

16 lines
239 B
Go
Raw Normal View History

package flog
import (
"testing"
)
func TestNewDiscardRouter(t *testing.T) {
router := NewDiscardRouter()
if nil == router {
t.Errorf("After trying to create a discard router, expected it to be not nil, but was: %v", router)
}
}