-
-
Notifications
You must be signed in to change notification settings - Fork 300
Open
Description
Hello, long-time Ginkgo/Gomega lover here. I maintain an additional matcher library: https://github.com/rgalanakis/golangal
I know some of them are taste-dependent, but I think the built-in HaveLen and HaveCap matchers can be made more flexible without any downsides:
- Accept a matcher, rather than an int (ie,
HaveLen(BeNumerically(">", 5))) - Handle non-built-in-collection types, where they have
Len()orCap()(ie,Expect(bytes.NewBufferString("abc")).To(HaveLength(3)))
I have implementations of these here, or let me know if you'd add this and I can open a PR.
thediveo
Metadata
Metadata
Assignees
Labels
No labels