mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 10:43:20 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			246 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			246 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package test
 | 
						|
 | 
						|
import (
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"github.com/coredns/coredns/plugin/test"
 | 
						|
)
 | 
						|
 | 
						|
func TestTempFile(t *testing.T) {
 | 
						|
	t.Parallel()
 | 
						|
	_, f, e := test.TempFile(".", "test")
 | 
						|
	if e != nil {
 | 
						|
		t.Fatalf("Failed to create temp file: %s", e)
 | 
						|
	}
 | 
						|
	defer f()
 | 
						|
}
 |