mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
23 lines
407 B
Go
23 lines
407 B
Go
package pipeline
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSkipPipe(t *testing.T) {
|
|
var assert = assert.New(t)
|
|
var reason = "this is a test"
|
|
var err = Skip(reason)
|
|
assert.Error(err)
|
|
assert.Equal(reason, err.Error())
|
|
}
|
|
|
|
func TestIsSkip(t *testing.T) {
|
|
var assert = assert.New(t)
|
|
assert.True(IsSkip(Skip("whatever")))
|
|
assert.False(IsSkip(errors.New("nope")))
|
|
}
|