coredns/plugin/dnstap/context_test.go
2019-03-13 18:08:33 +00:00

15 lines
231 B
Go

package dnstap
import (
"context"
"testing"
)
func TestDnstapContext(t *testing.T) {
ctx := ContextWithTapper(context.TODO(), Dnstap{})
tapper := TapperFromContext(ctx)
if tapper == nil {
t.Fatal("Can't get tapper")
}
}