1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

15 lines
330 B
Go
Raw Normal View History

2017-08-20 16:50:34 -03:00
package testlib
import (
"testing"
"github.com/goreleaser/goreleaser/internal/pipeline"
2017-08-20 16:50:34 -03:00
"github.com/stretchr/testify/assert"
)
// AssertSkipped asserts that a pipe was skipped
func AssertSkipped(t *testing.T, err error) {
_, ok := err.(pipeline.ErrSkip)
2018-01-10 19:22:37 -02:00
assert.True(t, ok, "expected a pipeline.ErrSkip but got %v", err)
2017-08-20 16:50:34 -03:00
}