1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-07 05:36:14 +02:00
nfpm/deprecation/deprecation_test.go
Carlos Alexandro Becker aaac886494
chore(ci): improve tparse (#527)
* chore(ci): improve tparse

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* chore(ci): improve tparse

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-24 10:13:32 -03:00

18 lines
358 B
Go

package deprecation
import (
"bytes"
"testing"
"github.com/stretchr/testify/require"
)
func TestNotice(t *testing.T) {
var b bytes.Buffer
Noticer = prefixed{&b}
Print("blah\n")
Printf("blah: %v\n", true)
Println("foobar")
require.Equal(t, "DEPRECATION WARNING: blah\nDEPRECATION WARNING: blah: true\nDEPRECATION WARNING: foobar\n", b.String())
}