mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
15 lines
260 B
Go
15 lines
260 B
Go
|
package logext
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/apex/log"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestWriter(t *testing.T) {
|
||
|
l, err := NewWriter(log.WithField("foo", "bar")).Write([]byte("foo bar"))
|
||
|
require.NoError(t, err)
|
||
|
require.Equal(t, 7, l)
|
||
|
}
|