Skip to content

poy/eachers

Repository files navigation

eachers

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.

Provided Matchers

###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.

About

Gomega matchers that integrate with hel mocks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages