mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
64b1f14a86
* refactor: merging archive in the same repo * refactor: merging archive in the same repo * refactor: better organizing packages * refactor: fixing renames * fix: new dep version * fix: makefile * fix: zip/tar tests * fix: gitigonore * fix: s3 tests * fix: archive test
21 lines
363 B
Go
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")))
|
|
}
|