1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/pipeline/pipe_test.go
Carlos Alexandro Becker d85a9001ec
removing all assert.New because vet shadow complains about this now
aaaaaaaaaaarhhhhhhhhgttt
2017-09-26 19:24:49 -03:00

21 lines
363 B
Go

package pipeline
import (
"errors"
"testing"
"github.com/stretchr/testify/assert"
)
func TestSkipPipe(t *testing.T) {
var reason = "this is a test"
var err = Skip(reason)
assert.Error(t, err)
assert.Equal(t, reason, err.Error())
}
func TestIsSkip(t *testing.T) {
assert.True(t, IsSkip(Skip("whatever")))
assert.False(t, IsSkip(errors.New("nope")))
}