mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
60f4fe7d2d
* fix: moved sign log to info Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * feat: stream cmd output Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * chore: fmt Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: log writer Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: log Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: wait already closes Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: wait for wg first Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: use lib Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: version Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
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)
|
|
}
|