Top 0.9% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 2.1% docker downloads on proxy.golang.org
proxy.golang.org : github.com/icza/mighty
Package mighty is a lightweight extension to Go's testing package. With this utility, you can make your Go test files super clean but still intuitive. This package doesn't want to hide complex things from you, but wants to eliminate repetitive, long code from your tests. You could create a value of mighty.Myt and use its methods like m.Eq(), m.Neq(), ... etc. as seen below: But the recommended, more intuitive and more compact way is to acquire and use method values returned by functions of mighty: Without mighty it could look like this: Using mighty: Without mighty it could look like this: Using mighty: For more usage examples, check out the following packages which use mighty extensively in their testing code: - https://github.com/icza/bitio - https://github.com/icza/session - https://github.com/icza/kvcache
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/icza/mighty
Keywords:
library
, lightweight-extension
, testing
License: Apache-2.0
Latest release: over 2 years ago
First release: almost 3 years ago
Namespace: github.com/icza
Dependent packages: 30
Dependent repositories: 358
Stars: 4 on GitHub
Forks: 0 on GitHub
Docker dependents: 1
Docker downloads: 9
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/icza
Last synced: about 1 month ago