Skip to content

Commit

Permalink
adds tests on response's writer and recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
rvflash committed Mar 2, 2019
1 parent ca30ea6 commit 329f4cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions request_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package tcp_test
2 changes: 2 additions & 0 deletions response_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestResponseWriter_Write(t *testing.T) {
n int
err error
)
are.Equal(w.Size(), noWritten)
for _, tt := range dt {
t.Run(tt.msg, func(t *testing.T) {
n, err = w.Write([]byte(tt.msg))
Expand Down Expand Up @@ -49,6 +50,7 @@ func TestResponseWriter_WriteString(t *testing.T) {
n int
err error
)
are.Equal(w.Size(), noWritten)
for _, tt := range dt {
t.Run(tt.msg, func(t *testing.T) {
n, err = w.WriteString(tt.msg)
Expand Down

0 comments on commit 329f4cc

Please sign in to comment.