go-unit-test

module
v0.0.0-...-9c49bb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT

README

Go Unit Testing Example

Go Report Card Go Coverage

This repository serves as an example for implementing unit tests in a Golang project. It demonstrates best practices for structuring your codebase to facilitate testing and includes examples of unit tests using the standard testing package.

Getting Started

Prerequisites

Before running the tests, ensure that you have Golang installed on your machine. You can download it here.

Running Tests

To run the unit tests, use the following command:

make tests

Directories

Path Synopsis
internal
generated/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL