(t *testing.T)
| 172 | } |
| 173 | |
| 174 | func TestFNVHash32uint(t *testing.T) { |
| 175 | tests := []struct { |
| 176 | out uint32 |
| 177 | in string |
| 178 | }{ |
| 179 | {2166136261, ""}, |
| 180 | {84696446, "a"}, |
| 181 | {1886858552, "ab"}, |
| 182 | {1134309195, "abc"}, |
| 183 | } |
| 184 | for _, test := range tests { |
| 185 | i := FNVHash32uint([]byte(test.in)) |
| 186 | if i != test.out { |
| 187 | t.Errorf("FNVHash32uint(%q) = %d, want %d", test.in, i, |
| 188 | test.out) |
| 189 | continue |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | func TestTHashB(t *testing.T) { |
| 195 | tests := []struct { |
nothing calls this directly
no test coverage detected