mirror of
https://github.com/goreleaser/nfpm
synced 2024-10-01 10:41:14 +02:00
aaac886494
* 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>
18 lines
358 B
Go
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())
|
|
}
|