(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestHashStreamTypes(t *testing.T) { |
| 159 | h := hash.SHA1 |
| 160 | for _, test := range hashTestSet { |
| 161 | sums, err := hash.StreamTypes(bytes.NewBuffer(test.input), hash.NewHashSet(h)) |
| 162 | require.NoError(t, err) |
| 163 | assert.Len(t, sums, 1) |
| 164 | assert.Equal(t, sums[h], test.output[h]) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | func TestHashSetStringer(t *testing.T) { |
| 169 | h := hash.NewHashSet(hash.SHA1, hash.MD5) |
nothing calls this directly
no test coverage detected
searching dependent graphs…