MCPcopy
hub / github.com/hyperledger/fabric / Equal

Method Equal

gossip/privdata/coordinator_test.go:81–90  ·  view source on GitHub ↗
(other digests)

Source from the content-addressed store, hash-verified

79type digests []privdatacommon.DigKey
80
81func (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
92type fetchCall struct {
93 fetcher *fetcherMock

Calls 1

flattenFunction · 0.85

Tested by

no test coverage detected