gomega
https://github.com/onsi/gomega
Go
Ginkgo's Preferred Matcher Library
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported1 Subscribers
Add a CodeTriage badge to gomega
Help out
- Issues
- HaveKey and HaveKeyWithValue with a key matcher that errors on some keys succeed or error depending on map iteration order
- BeNumerically("==", x, threshold) applies the threshold for int and uint but not for float
- BeNumerically("~") finds int64(math.MinInt64) within 1 of int64(math.MaxInt64)
- HaveKeyWithValue with a key matcher that accepts several keys succeeds on some calls and fails on others
- MatchJSON finds `1e400` equal to `1e401`
- MatchJSON finds 12345678901234567890 equal to 12345678901234567891
- MatchXML does not match the same XML written with a different namespace prefix
- MatchYAML compares only the first document of a multi-document YAML stream
- HaveExactElements' failure message omits where the missing or extra elements start when that index is 0
- BeNumerically finds -1 equal to uint64(math.MaxUint64) and uint(5) not greater than -3
- Docs
- Go not yet supported