diff options
author | Wolfy-J <[email protected]> | 2018-06-06 12:41:49 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-06 12:41:49 +0300 |
commit | aefb8c50d2c691cac113d9ccbbfbcbd30635ee6a (patch) | |
tree | fc5ecf4301c191ef503ca41058882ed5e8bc13d3 /error_buffer_test.go | |
parent | f762cd2bff2fa35e32bc4502c97d2ee0984397b7 (diff) |
Cs and refactoring
Diffstat (limited to 'error_buffer_test.go')
-rw-r--r-- | error_buffer_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/error_buffer_test.go b/error_buffer_test.go new file mode 100644 index 00000000..ce252612 --- /dev/null +++ b/error_buffer_test.go @@ -0,0 +1,14 @@ +package roadrunner + +import ( + "testing" + "bytes" + "github.com/magiconair/properties/assert" +) + +func TestErrBuffer_Write_Len(t *testing.T) { + buf := &errBuffer{buffer: new(bytes.Buffer)} + buf.Write([]byte("hello")) + assert.Equal(t, 5, buf.Len()) + assert.Equal(t, buf.String(), "hello") +} |