go-testhelpers

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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