mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -21,6 +21,7 @@ func TempFile(dir, content string) (string, func(), error) {
|
||||
|
||||
// WritePEMFiles creates a tmp dir with ca.pem, cert.pem, and key.pem
|
||||
func WritePEMFiles(t *testing.T) (string, error) {
|
||||
t.Helper()
|
||||
tempDir := t.TempDir()
|
||||
|
||||
data := `-----BEGIN CERTIFICATE-----
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package test
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTempFile(t *testing.T) {
|
||||
_, f, e := TempFile(".", "test")
|
||||
|
||||
Reference in New Issue
Block a user