An open API service indexing awesome lists of open source software.

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

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`