(t *testing.T)
| 3091 | } |
| 3092 | |
| 3093 | func TestBytesEqual(t *testing.T) { |
| 3094 | t.Parallel() |
| 3095 | |
| 3096 | cases := []struct { |
| 3097 | a, b []byte |
| 3098 | }{ |
| 3099 | {make([]byte, 2), make([]byte, 2)}, |
| 3100 | {make([]byte, 2), make([]byte, 2, 3)}, |
| 3101 | {nil, make([]byte, 0)}, |
| 3102 | } |
| 3103 | for i, c := range cases { |
| 3104 | Equal(t, reflect.DeepEqual(c.a, c.b), ObjectsAreEqual(c.a, c.b), "case %d failed", i+1) |
| 3105 | } |
| 3106 | } |
| 3107 | |
| 3108 | func BenchmarkBytesEqual(b *testing.B) { |
| 3109 | const size = 1024 * 8 |
nothing calls this directly
no test coverage detected