diff options
| author | Dominik Honnef <dominik@honnef.co> | 2016-03-21 00:13:36 +0100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-03-21 07:10:08 +0000 |
| commit | b2cf57104090b0cc148c0608f10f33cdfb48ec11 (patch) | |
| tree | f93b22537cc79468014fa6d82ca1e4975d3a8e91 /src/bytes/bytes_test.go | |
| parent | 1a82946ea5a98f5e7a7ec416bc83a7cba701e9b8 (diff) | |
| download | go-b2cf57104090b0cc148c0608f10f33cdfb48ec11.tar.xz | |
all: delete dead test code
This deletes unused code and helpers from tests.
Change-Id: Ie31d46115f558ceb8da6efbf90c3c204e03b0d7e
Reviewed-on: https://go-review.googlesource.com/20927
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/bytes/bytes_test.go')
| -rw-r--r-- | src/bytes/bytes_test.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/bytes/bytes_test.go b/src/bytes/bytes_test.go index f158098f9b..1be29d6cc6 100644 --- a/src/bytes/bytes_test.go +++ b/src/bytes/bytes_test.go @@ -47,32 +47,6 @@ type BinOpTest struct { i int } -var equalTests = []struct { - a, b []byte - i int -}{ - {[]byte(""), []byte(""), 0}, - {[]byte("a"), []byte(""), 1}, - {[]byte(""), []byte("a"), -1}, - {[]byte("abc"), []byte("abc"), 0}, - {[]byte("ab"), []byte("abc"), -1}, - {[]byte("abc"), []byte("ab"), 1}, - {[]byte("x"), []byte("ab"), 1}, - {[]byte("ab"), []byte("x"), -1}, - {[]byte("x"), []byte("a"), 1}, - {[]byte("b"), []byte("x"), -1}, - // test runtime·memeq's chunked implementation - {[]byte("abcdefgh"), []byte("abcdefgh"), 0}, - {[]byte("abcdefghi"), []byte("abcdefghi"), 0}, - {[]byte("abcdefghi"), []byte("abcdefghj"), -1}, - // nil tests - {nil, nil, 0}, - {[]byte(""), nil, 0}, - {nil, []byte(""), 0}, - {[]byte("a"), nil, 1}, - {nil, []byte("a"), -1}, -} - func TestEqual(t *testing.T) { for _, tt := range compareTests { eql := Equal(tt.a, tt.b) |
