https://github.com/mchirico/go_test
Simple Go Test
https://github.com/mchirico/go_test
go golang tdd tdd-kata testing
Last synced: over 1 year ago
JSON representation
Simple Go Test
- Host: GitHub
- URL: https://github.com/mchirico/go_test
- Owner: mchirico
- License: apache-2.0
- Created: 2018-04-14T13:47:47.000Z (about 8 years ago)
- Default Branch: develop
- Last Pushed: 2021-11-23T11:23:33.000Z (over 4 years ago)
- Last Synced: 2025-01-23T01:42:10.418Z (over 1 year ago)
- Topics: go, golang, tdd, tdd-kata, testing
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mchirico/go_test)
[](https://goreportcard.com/report/github.com/mchirico/go_test)
[](https://codecov.io/gh/mchirico/go_test)
[](https://codeclimate.com/github/mchirico/go_test/maintainability)
[](https://codeclimate.com/github/mchirico/go_test/test_coverage)
## Testing in Go
Testing main exit status err, based
on flag input.
```bash
git checkout tags/v1.1
```
```bash
# Install
go get github.com/golang/mock/gomock
go get github.com/golang/mock/mockgen
# If you want, you can build mockgen in the current directory
go build github.com/golang/mock/mockgen
```
```bash
mockgen net/http Get
```
```bash
mockgen -destination=./mocks/mock_stuff.go -package=mocks database/sql/driver Conn,Driver
```