https://github.com/caocmai/testing-in-golang
Unit, table, and benchmark tests using Go
https://github.com/caocmai/testing-in-golang
golang testing
Last synced: 6 months ago
JSON representation
Unit, table, and benchmark tests using Go
- Host: GitHub
- URL: https://github.com/caocmai/testing-in-golang
- Owner: caocmai
- Created: 2021-02-25T22:33:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-28T17:21:37.000Z (over 5 years ago)
- Last Synced: 2024-05-23T04:19:13.363Z (about 2 years ago)
- Topics: golang, testing
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing in Go
Basic methods of testing in Go, including unit, table, and benchmart tests.
## Prerequisites
* [Go - v1.16](https://golang.org/doc/install)
## Run Project
To run this simple project:
`$ go run main.go`
## Run Tests
To run the test cases:
`$ go test`
To see details of the tests:
`$ go test -v`