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

https://github.com/sirkon/testlog

Logging of sirkon/errors in tests.
https://github.com/sirkon/testlog

Last synced: 3 months ago
JSON representation

Logging of sirkon/errors in tests.

Awesome Lists containing this project

README

        

# testlog
Logging of [sirkon/errors](https://github.com/sirkon/errors) in tests, including context.

## Installation

```shell
go get github.com/sirkon/errors
```

## Usage

Just use helper functions:

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

or

```go
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.