-
-
Notifications
You must be signed in to change notification settings - Fork 304
Home
Onsi Fakhouri edited this page May 9, 2026
·
9 revisions
The community has created several libraries providing custom matchers for common packages or operations. To contribute a matcher to this list, please open an issue.
- github.com/tjarratt/gcounterfeiter - custom matchers for github.com/maxbrunsfeld/counterfeiter fakes
- github.com/chendrix/gerrors - custom matchers for github.com/pkg/errors errors
- github.com/BooleanCat/gfile - allows you to make assertions on the contents of files
- github.com/st3v/glager - matchers for lager logging
- github.com/Benjamintf1/Expanded-Unmarshalled-Matchers - More flexible matchers for JSON and YAML that support matching unordered lists.
- github.com/mikfreedman/gcsv - Match Simple CSV Schema for a string
- github.com/JiaYongfei/respect - Gomega matchers for verifying part fields' equality of a complex struct
- https://github.com/itbasis/gdecimal - Gomega matchers that help you write effective assertions Decimal
- Sawchain is a Go library for K8s YAML-driven testing—powered by Chainsaw. Sawchain currently offers the following matchers:
- MatchYAML - Checks if a K8s client.Object matches YAML expectations defined in a template, including full support for Chainsaw JMESPath expressions, as well as multi-document matching with "match any document" semantics.
- HaveStatusCondition - Uses Chainsaw matching to check if a client.Object has a specific status condition.