mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	For the match function use the proper thing from go dns. Fix all callers and tests to use this. Fixes: #107
		
			
				
	
	
		
			13 lines
		
	
	
		
			215 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			215 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package assets
 | |
| 
 | |
| import (
 | |
| 	"strings"
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestPath(t *testing.T) {
 | |
| 	if actual := Path(); !strings.HasSuffix(actual, ".coredns") {
 | |
| 		t.Errorf("Expected path to be a .caddy folder, got: %v", actual)
 | |
| 	}
 | |
| }
 |