MCPcopy Index your code
hub / github.com/rclone/rclone / TestHashStreamTypes

Function TestHashStreamTypes

fs/hash/hash_test.go:158–166  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func 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
168func TestHashSetStringer(t *testing.T) {
169 h := hash.NewHashSet(hash.SHA1, hash.MD5)

Callers

nothing calls this directly

Calls 4

StreamTypesFunction · 0.92
NewHashSetFunction · 0.92
LenMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…