diff options
author | 2022-01-31 10:27:19 +0000 | |
---|---|---|
committer | 2022-01-31 10:27:19 +0000 | |
commit | 830a0f7dcb4115639812c700d31325e709196dba (patch) | |
tree | 730241ede9b53bc6c79a11147c50ff9b26d946f4 | |
parent | 52c057f86f806f5f675cf1c864ebbbb338b683ed (diff) | |
download | coredns-830a0f7dcb4115639812c700d31325e709196dba.tar.gz coredns-830a0f7dcb4115639812c700d31325e709196dba.tar.zst coredns-830a0f7dcb4115639812c700d31325e709196dba.zip |
auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
-rw-r--r-- | plugin/metrics/recorder_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/metrics/recorder_test.go b/plugin/metrics/recorder_test.go index 486d5ca20..fd8c5fc8d 100644 --- a/plugin/metrics/recorder_test.go +++ b/plugin/metrics/recorder_test.go @@ -4,11 +4,11 @@ import ( "testing" "github.com/coredns/coredns/plugin/test" - + "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 { |