Logo
Explore Help
Sign In
Mirrors/coredns
1
0
Fork 0
You've already forked coredns
mirror of https://github.com/coredns/coredns.git synced 2025-10-28 08:44:17 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
7c275777073372a592e54921761881b526d2870c
coredns/plugin/test/file_test.go

12 lines
179 B
Go
Raw Normal View History

Fix path for asset storage (#144) Define locations for keys and secondary zones, 'n stuff. Add a bunch of tests as well.
2016-04-30 21:56:43 +01:00
package test
import "testing"
func TestTempFile(t *testing.T) {
Pr 311 2 (#312) * Add a setup test for middleware/file This fix adds a setup test for middleware/file so that there is a basic coverage for the Corefile processing of middleware/file. This fix is related to 308 (Will look into it). Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * middleware/file: use helper function for test Fixup setup_test.go and use the test.TempFile function to make things somewhat shorter. Use clean up the use of testing.T in TempFile - it is not used.
2016-10-02 15:58:01 +01:00
_, f, e := TempFile(".", "test")
Fix path for asset storage (#144) Define locations for keys and secondary zones, 'n stuff. Add a bunch of tests as well.
2016-04-30 21:56:43 +01:00
if e != nil {
t.Fatalf("failed to create temp file: %s", e)
}
defer f()
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 35ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API