(t *testing.T)
| 2483 | } |
| 2484 | |
| 2485 | func TestBytesEqual(t *testing.T) { |
| 2486 | var cases = []struct { |
| 2487 | a, b []byte |
| 2488 | }{ |
| 2489 | {make([]byte, 2), make([]byte, 2)}, |
| 2490 | {make([]byte, 2), make([]byte, 2, 3)}, |
| 2491 | {nil, make([]byte, 0)}, |
| 2492 | } |
| 2493 | for i, c := range cases { |
| 2494 | Equal(t, reflect.DeepEqual(c.a, c.b), ObjectsAreEqual(c.a, c.b), "case %d failed", i+1) |
| 2495 | } |
| 2496 | } |
| 2497 | |
| 2498 | func BenchmarkBytesEqual(b *testing.B) { |
| 2499 | const size = 1024 * 8 |
nothing calls this directly
no test coverage detected
searching dependent graphs…