Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/batteredbunny/testingassert
Simple package providing Assert functions for Golang testing
https://github.com/batteredbunny/testingassert
assert golang testing
Last synced: 22 days ago
JSON representation
Simple package providing Assert functions for Golang testing
- Host: GitHub
- URL: https://github.com/batteredbunny/testingassert
- Owner: BatteredBunny
- License: gpl-3.0
- Created: 2022-07-02T19:25:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T00:50:16.000Z (10 months ago)
- Last Synced: 2024-08-09T09:23:29.195Z (3 months ago)
- Topics: assert, golang, testing
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testingassert
Simple package providing Assert functions for Golang testing
```
go get github.com/BatteredBunny/testingassert
```## Usage
```go
func BasicTest(t *testing.T) {
assert.TestState = t
assert.HideSuccess = falseassert.Equals("123", "1" + "2" + "3")
assert.NotEquals(123, 5+3, "math operation returned wrong answer")a := 1 == 1
assert.Assert(a, "function shouldn't return false!")
}
```