mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			231 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 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")
 | |
| 	}
 | |
| }
 |