auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
This commit is contained in:
parent
52c057f86f
commit
830a0f7dcb
1 changed files with 6 additions and 6 deletions
|
@ -4,11 +4,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/coredns/coredns/plugin/test"
|
"github.com/coredns/coredns/plugin/test"
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
type inmemoryWriter struct{
|
type inmemoryWriter struct {
|
||||||
test.ResponseWriter
|
test.ResponseWriter
|
||||||
written []byte
|
written []byte
|
||||||
}
|
}
|
||||||
|
@ -33,16 +33,16 @@ func TestRecorder_WriteMsg(t *testing.T) {
|
||||||
nxdomainResp.Rcode = dns.RcodeNameError
|
nxdomainResp.Rcode = dns.RcodeNameError
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
msg *dns.Msg
|
msg *dns.Msg
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "should record successful response",
|
name: "should record successful response",
|
||||||
msg: &successResp,
|
msg: &successResp,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "should record nxdomain response",
|
name: "should record nxdomain response",
|
||||||
msg: &nxdomainResp,
|
msg: &nxdomainResp,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for i, tt := range tests {
|
for i, tt := range tests {
|
||||||
|
|
Loading…
Add table
Reference in a new issue