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

https://github.com/sagor0078/tdd-golang


https://github.com/sagor0078/tdd-golang

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# ๐Ÿงช Golang with Tests

A simple Go project demonstrating unit testing, benchmarking, and code coverage.

## โœ… Run Tests

Run all tests(with output):

```bash
go test -v

```

## ๐Ÿ“Š Code Coverage

Check how much of your code is covered by tests:

```bash
go test -cover
```

## โšก Benchmarking

Run all benchmark functions:

```bash
go test -bench="."
```