mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-30 04:50:45 +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
15 lines
330 B
Go
15 lines
330 B
Go
package testlib
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipeline"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
// AssertSkipped asserts that a pipe was skipped
|
|
func AssertSkipped(t *testing.T, err error) {
|
|
_, ok := err.(pipeline.ErrSkip)
|
|
assert.True(t, ok, "expected a pipeline.ErrSkip but got %v", err)
|
|
}
|