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

https://github.com/betterstack-community/gounittests

Intro to unit tests
https://github.com/betterstack-community/gounittests

Last synced: 21 days ago
JSON representation

Intro to unit tests

Awesome Lists containing this project

README

          

# Unit Testing in Go

The project contains a simple entitlements claim implementation to demonstrate
unit testing in Go.

**Tutorial**:
[A Gentle Introduction to Unit Testing in Go](https://betterstack.com/community/guides/testing/unit-testing-in-go/)

## 🟢 Prerequisites

- Basic familiarity with the Go programming language.
- A [recent version of Go](https://go.dev/doc/install) installed on your local
machine.

## 📦 Getting started

Run the following commands to get set up:

```bash
git clone https://github.com/betterstack-community/gounittests.git
```

```bash
cd gounittests
```

Then follow the
[tutorial here](https://betterstack.com/community/guides/testing/unit-testing-in-go/)
to learn and practice unit testing in Go.

## âš– License

The code used in this project and in the linked tutorial are licensed under the
[Apache License, Version 2.0](LICENSE)