Commit 8445cb6e authored by Geoff Simmons's avatar Geoff Simmons

Test Reason.String()

parent 6e1d7ccf
......@@ -172,6 +172,16 @@ func TestReasonString(t *testing.T) {
}
}
func TestStatusString(t *testing.T) {
// Just make sure it doesn't panic, don't want tests to depend
// on specific values of the strings.
stati := [...]Status{
WriteErr, IOErr, Overrun, Abandoned, EOF, EOL, More, Stopped }
for _, v := range stati {
v.String()
}
}
var expRecordTypeStr = map[RecordType]string{
Client: "c",
Backend: "b",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment