Gomega matchers that integrate with hel mocks.
hel uses channels to store the history of a method. This allows tests to assert that the file was called any number of times in a go-routine safe way.
While Gomega has matchers for channels (e.g. Receive), they don't lend themselves to asserting for multiple values. eachers is intended to fill that void.
###EqualEach
###
Expect(helChannel).To(EqualEach(1,2,3))
###BeEquivalentToEach
###
Expect(helChannel).To(BeEquivalentToEach(1,2,3))
###Each
###
Expect(helChannel).To(Each(BeEquivalentTo,1,2,3))
Note: Each
is actually used by both EqualEach
and BeEquivalentToEach
.