mirror of
https://github.com/coredns/coredns.git
synced 2025-08-06 06:17:00 +02:00
23 lines
369 B
Go
23 lines
369 B
Go
package test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func RunTestFile(t *testing.T, filename string) {
|
|
t.Helper()
|
|
|
|
f, err := os.Open(filename)
|
|
if err != nil {
|
|
t.Fatalf("failed to open test file: %v", err)
|
|
}
|
|
defer f.Close()
|
|
|
|
t.Logf("Test file opened successfully: %s", filename)
|
|
}
|
|
|
|
func TestTXTRecordSplit(t *testing.T) {
|
|
RunTestFile(t, "testdata/txtrecordsplit.test")
|
|
}
|