Categorygithub.com/allentv/go-testhelpers
repository
0.1.1
Repository: https://github.com/allentv/go-testhelpers.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Go Test Helpers

Helper functions for writing unit tests in Golang.

The functions are divided into different sections based on their nature or corresponding package in Go.

I have tried to follow best practices of testing wherever possible inspired by Mitchell Hashimoto

Any place where closing a stream/object is deferred, the defer operation is returned as a closer function that can be triggered in the test when invoking the function thereby cleaning up correctly after the test is completed.