mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			286 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			286 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|  | package kubernetes
 | ||
|  | 
 | ||
|  | import (
 | ||
|  | 	"testing"
 | ||
|  | 
 | ||
|  | 	"github.com/coredns/coredns/plugin/pkg/watch"
 | ||
|  | )
 | ||
|  | 
 | ||
|  | func TestIsWatchable(t *testing.T) {
 | ||
|  | 	k := &Kubernetes{}
 | ||
|  | 	var i interface{} = k
 | ||
|  | 	if _, ok := i.(watch.Watchable); !ok {
 | ||
|  | 		t.Error("Kubernetes should implement watch.Watchable and does not")
 | ||
|  | 	}
 | ||
|  | }
 |