mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Fix path for asset storage (#144)
Define locations for keys and secondary zones, 'n stuff. Add a bunch of tests as well.
This commit is contained in:
		
							
								
								
									
										11
									
								
								middleware/test/file_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								middleware/test/file_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| package test | ||||
|  | ||||
| import "testing" | ||||
|  | ||||
| func TestTempFile(t *testing.T) { | ||||
| 	_, f, e := TempFile(t, ".", "test") | ||||
| 	if e != nil { | ||||
| 		t.Fatalf("failed to create temp file: %s", e) | ||||
| 	} | ||||
| 	defer f() | ||||
| } | ||||
		Reference in New Issue
	
	Block a user