summaryrefslogtreecommitdiff
path: root/error_buffer_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-06 12:41:49 +0300
committerWolfy-J <[email protected]>2018-06-06 12:41:49 +0300
commitaefb8c50d2c691cac113d9ccbbfbcbd30635ee6a (patch)
treefc5ecf4301c191ef503ca41058882ed5e8bc13d3 /error_buffer_test.go
parentf762cd2bff2fa35e32bc4502c97d2ee0984397b7 (diff)
Cs and refactoring
Diffstat (limited to 'error_buffer_test.go')
-rw-r--r--error_buffer_test.go14
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")
+}