diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-19 13:45:53 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-19 13:45:53 -0500 |
commit | a04b84778871d77e539a675acbff05f7220e2f5e (patch) | |
tree | 4b6c54cdf6d6d5b3c3ef084f604615b2dc2b9c47 /sd_daemon/log_test.go | |
parent | 4a3a5525172afd69bc674a2a344065cd9e9a5888 (diff) |
Improve documentation.
Diffstat (limited to 'sd_daemon/log_test.go')
-rw-r--r-- | sd_daemon/log_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd_daemon/log_test.go b/sd_daemon/log_test.go index e2fdef9..257ccb9 100644 --- a/sd_daemon/log_test.go +++ b/sd_daemon/log_test.go @@ -33,8 +33,8 @@ func TestLog(t *testing.T) { })) type testcase struct { - level syslog.Priority - msg string + pri syslog.Priority + msg string } testcases := map[testcase]string{ @@ -52,18 +52,18 @@ func TestLog(t *testing.T) { for in, out := range testcases { written = nil - n, err := log.WriteString(in.level, in.msg) + n, err := log.WriteString(in.pri, in.msg) if n != len(out) || string(written) != out || err != nil { t.Errorf("WriteString(%#v, %#v)\n -> expected:{%#v, %#v, %#v}\n -> got:{%#v, %#v, %#v}\n", - in.level, in.msg, + in.pri, in.msg, len(out), nil, out, n, err, string(written)) } written = nil - n, err = log.WriteBytes(in.level, []byte(in.msg)) + n, err = log.WriteBytes(in.pri, []byte(in.msg)) if n != len(out) || string(written) != out || err != nil { t.Errorf("WriteBytes(%#v, %#v)\n -> expected:{%#v, %#v, %#v}\n -> got:{%#v, %#v, %#v}\n", - in.level, in.msg, + in.pri, in.msg, len(out), nil, out, n, err, string(written)) } |