summaryrefslogtreecommitdiff
path: root/sd_daemon/log_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-14 12:40:40 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-14 12:40:40 -0400
commit11b237597c6f74e9fc91b831a0aaf4bac9f81b44 (patch)
treeaa302099b0b24a5f2f01ba423dcf8f9a726f7226 /sd_daemon/log_test.go
parent14993a8389e5dbf7e033a93c88c1e77077b209bb (diff)
gofmt -s
Diffstat (limited to 'sd_daemon/log_test.go')
-rw-r--r--sd_daemon/log_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/sd_daemon/log_test.go b/sd_daemon/log_test.go
index d9937e2..2f835a8 100644
--- a/sd_daemon/log_test.go
+++ b/sd_daemon/log_test.go
@@ -40,16 +40,16 @@ func TestLog(t *testing.T) {
}
testcases := map[testcase]string{
- testcase{6, "foo"}: "<6>foo\n",
- testcase{6, "foo\n"}: "<6>foo\n",
- testcase{6, "foo\nbar"}: "<6>foo\n<6>bar\n",
- testcase{6, "foo\nbar\n"}: "<6>foo\n<6>bar\n",
- testcase{6, "foo\nbar\nbaz"}: "<6>foo\n<6>bar\n<6>baz\n",
- testcase{6, "foo\nbar\nbaz\n"}: "<6>foo\n<6>bar\n<6>baz\n",
+ {6, "foo"}: "<6>foo\n",
+ {6, "foo\n"}: "<6>foo\n",
+ {6, "foo\nbar"}: "<6>foo\n<6>bar\n",
+ {6, "foo\nbar\n"}: "<6>foo\n<6>bar\n",
+ {6, "foo\nbar\nbaz"}: "<6>foo\n<6>bar\n<6>baz\n",
+ {6, "foo\nbar\nbaz\n"}: "<6>foo\n<6>bar\n<6>baz\n",
- testcase{0, "foo"}: "<0>foo\n",
- testcase{1, "foo"}: "<1>foo\n",
- testcase{10, "foo"}: "<10>foo\n",
+ {0, "foo"}: "<0>foo\n",
+ {1, "foo"}: "<1>foo\n",
+ {10, "foo"}: "<10>foo\n",
}
for in, out := range testcases {