mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/test: fix TXT record comparison for multi-chunk vs multiple records (#7413)
This commit is contained in:
22
plugin/test/testdata_test.go
Normal file
22
plugin/test/testdata_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user