plugin/test: fix TXT record comparison for multi-chunk vs multiple records (#7413)

This commit is contained in:
Syed Azeez
2025-07-15 17:41:25 +05:30
committed by GitHub
parent d5932041f7
commit 1981f22170
3 changed files with 43 additions and 4 deletions

View 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")
}