auto go fmt

Signed-off-by: coredns[bot] <bot@bot.coredns.io>
This commit is contained in:
coredns[bot] 2022-01-31 10:27:19 +00:00
parent 52c057f86f
commit 830a0f7dcb

View file

@ -8,7 +8,7 @@ import (
"github.com/miekg/dns"
)
type inmemoryWriter struct{
type inmemoryWriter struct {
test.ResponseWriter
written []byte
}
@ -33,16 +33,16 @@ func TestRecorder_WriteMsg(t *testing.T) {
nxdomainResp.Rcode = dns.RcodeNameError
tests := []struct {
name string
msg *dns.Msg
name string
msg *dns.Msg
}{
{
name: "should record successful response",
msg: &successResp,
msg: &successResp,
},
{
name: "should record nxdomain response",
msg: &nxdomainResp,
msg: &nxdomainResp,
},
}
for i, tt := range tests {