Skip to content

sirkon/testlog

Repository files navigation

testlog

Logging of sirkon/errors in tests, including context.

Installation

go get github.com/sirkon/errors

Usage

Just use helper functions:

testlog.Log(t, errors.New("log entry"))
testlog.Error(t, errors.New("some serious error"))

or

tl := testlog.New(t)
tl.Log(errors.New("log entry"))
tl.Error(errors.New("som serious error"))

PS

Tests are meant to fail in this module.

About

Logging of sirkon/errors in tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages