https://github.com/akyoto/assert
A minimal & stateless assert package for writing tests.
https://github.com/akyoto/assert
go testing testing-framework
Last synced: about 1 year ago
JSON representation
A minimal & stateless assert package for writing tests.
- Host: GitHub
- URL: https://github.com/akyoto/assert
- Owner: akyoto
- License: other
- Archived: true
- Created: 2019-08-16T08:52:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T08:18:37.000Z (over 6 years ago)
- Last Synced: 2025-03-05T18:56:27.626Z (over 1 year ago)
- Topics: go, testing, testing-framework
- Language: Go
- Homepage: https://git.akyoto.dev/go/assert
- Size: 27.3 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# assert
[![Godoc][godoc-image]][godoc-url]
[![Report][report-image]][report-url]
[![Tests][tests-image]][tests-url]
[![Coverage][coverage-image]][coverage-url]
[![Sponsor][sponsor-image]][sponsor-url]
A minimal & stateless assert package for writing tests.
## API
```go
assert.Nil(t, nil)
assert.True(t, true)
assert.Equal(t, "Hello", "Hello")
assert.DeepEqual(t, "Hello", "Hello")
assert.Contains(t, "Hello", "ello")
```
## Features
* 0 dependencies
* About 250 lines of code
* Minimal interface
## Style
Please take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.
## Sponsors
| [](https://github.com/cedricfung) | [](https://github.com/soulcramer) | [](https://eduardurbach.com) |
| --- | --- | --- |
| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |
Want to see [your own name here?](https://github.com/users/akyoto/sponsorship)
[godoc-image]: https://godoc.org/github.com/akyoto/assert?status.svg
[godoc-url]: https://godoc.org/github.com/akyoto/assert
[report-image]: https://goreportcard.com/badge/github.com/akyoto/assert
[report-url]: https://goreportcard.com/report/github.com/akyoto/assert
[tests-image]: https://cloud.drone.io/api/badges/akyoto/assert/status.svg
[tests-url]: https://cloud.drone.io/akyoto/assert
[coverage-image]: https://codecov.io/gh/akyoto/assert/graph/badge.svg
[coverage-url]: https://codecov.io/gh/akyoto/assert
[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg
[sponsor-url]: https://github.com/users/akyoto/sponsorship