aboutsummaryrefslogtreecommitdiff
path: root/test/tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests.go')
-rw-r--r--test/tests.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tests.go b/test/tests.go
index 2b11a5ac9..a97541f8e 100644
--- a/test/tests.go
+++ b/test/tests.go
@@ -11,7 +11,7 @@ import (
"github.com/miekg/dns"
)
-func testMsg(zone string, typ uint16, o *dns.OPT) *dns.Msg {
+func Msg(zone string, typ uint16, o *dns.OPT) *dns.Msg {
m := new(dns.Msg)
m.SetQuestion(zone, typ)
if o != nil {
@@ -20,14 +20,14 @@ func testMsg(zone string, typ uint16, o *dns.OPT) *dns.Msg {
return m
}
-func testExchange(m *dns.Msg, server, net string) (*dns.Msg, error) {
+func Exchange(m *dns.Msg, server, net string) (*dns.Msg, error) {
c := new(dns.Client)
c.Net = net
return middleware.Exchange(c, m, server)
}
-// testServer returns a test server and the tcp and udp listeners addresses.
-func testServer(t *testing.T, corefile string) (*server.Server, string, string, error) {
+// Server returns a test server and the tcp and udp listeners addresses.
+func Server(t *testing.T, corefile string) (*server.Server, string, string, error) {
srv, err := core.TestServer(t, corefile)
if err != nil {
return nil, "", "", err