(t *testing.T, v V)
| 2132 | } |
| 2133 | |
| 2134 | func testNewHasher[V constraints.Ordered](t *testing.T, v V) { |
| 2135 | t.Helper() |
| 2136 | h := NewHasher(v) |
| 2137 | h.Hash(v) |
| 2138 | if !h.Equal(v, v) { |
| 2139 | t.Fatal("expected hash equality") |
| 2140 | } |
| 2141 | } |
| 2142 | |
| 2143 | func TestNewComparer(t *testing.T) { |
| 2144 | t.Run("builtin", func(t *testing.T) { |
no test coverage detected
searching dependent graphs…