mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 10:43:20 -05:00 
			
		
		
		
	Another thing we can test automatically, we sorta settled on using an uppercase letter in in t.Log and t.Fatal calls. Let's just check for this.
		
			
				
	
	
		
			12 lines
		
	
	
		
			179 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			179 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package test
 | 
						|
 | 
						|
import "testing"
 | 
						|
 | 
						|
func TestTempFile(t *testing.T) {
 | 
						|
	_, f, e := TempFile(".", "test")
 | 
						|
	if e != nil {
 | 
						|
		t.Fatalf("Failed to create temp file: %s", e)
 | 
						|
	}
 | 
						|
	defer f()
 | 
						|
}
 |