Files
coredns/plugin/dnstap/context_test.go

16 lines
231 B
Go
Raw Normal View History

package dnstap
import (
"context"
"testing"
)
func TestDnstapContext(t *testing.T) {
2019-03-13 14:08:33 -04:00
ctx := ContextWithTapper(context.TODO(), Dnstap{})
tapper := TapperFromContext(ctx)
if tapper == nil {
t.Fatal("Can't get tapper")
}
}