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:
parent
e635b4e773
commit
e34e414e7f
6 changed files with 277 additions and 0 deletions
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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue