Open rgalanakis opened 4 months ago
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:
HaveLen(BeNumerically(">", 5))
Len()
Cap()
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.
love it! yes please do submit a PR!
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:
HaveLen(BeNumerically(">", 5))
)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.