diff options
author | Dominik Honnef <dominik@honnef.co> | 2016-04-01 07:34:18 +0200 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-11 15:16:54 +0000 |
commit | 683917a72154e3409e1ab5ef5b26030388312d0b (patch) | |
tree | 90255497e68b819bdc0f9a1d40c915d72fe3165b /src/runtime/gcinfo_test.go | |
parent | 4f12cc08132f3e5d2ba4b756c91d88c2e58a73b1 (diff) | |
download | go-683917a72154e3409e1ab5ef5b26030388312d0b.tar.gz go-683917a72154e3409e1ab5ef5b26030388312d0b.zip |
all: use bytes.Equal, bytes.Contains and strings.Contains, again
The previous cleanup was done with a buggy tool, missing some potential
rewrites.
Change-Id: I333467036e355f999a6a493e8de87e084f374e26
Reviewed-on: https://go-review.googlesource.com/21378
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/gcinfo_test.go')
-rw-r--r-- | src/runtime/gcinfo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/gcinfo_test.go b/src/runtime/gcinfo_test.go index c1c2354bf9..9a61b4f2b2 100644 --- a/src/runtime/gcinfo_test.go +++ b/src/runtime/gcinfo_test.go @@ -59,7 +59,7 @@ func TestGCInfo(t *testing.T) { func verifyGCInfo(t *testing.T, name string, p interface{}, mask0 []byte) { mask := runtime.GCMask(p) - if bytes.Compare(mask, mask0) != 0 { + if !bytes.Equal(mask, mask0) { t.Errorf("bad GC program for %v:\nwant %+v\ngot %+v", name, mask0, mask) return } |