(other digests)
| 79 | type digests []privdatacommon.DigKey |
| 80 | |
| 81 | func (d digests) Equal(other digests) bool { |
| 82 | flatten := func(d digests) map[privdatacommon.DigKey]struct{} { |
| 83 | m := map[privdatacommon.DigKey]struct{}{} |
| 84 | for _, dig := range d { |
| 85 | m[dig] = struct{}{} |
| 86 | } |
| 87 | return m |
| 88 | } |
| 89 | return reflect.DeepEqual(flatten(d), flatten(other)) |
| 90 | } |
| 91 | |
| 92 | type fetchCall struct { |
| 93 | fetcher *fetcherMock |
no test coverage detected