1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-11 13:38:41 +02:00

15 lines
328 B
Go
Raw Normal View History

2017-08-20 16:50:34 -03:00
package testlib
import (
"testing"
"github.com/goreleaser/goreleaser/v2/internal/pipe"
"github.com/stretchr/testify/require"
2017-08-20 16:50:34 -03:00
)
// AssertSkipped asserts that a pipe was skipped.
2017-08-20 16:50:34 -03:00
func AssertSkipped(t *testing.T, err error) {
t.Helper()
require.ErrorAs(t, err, &pipe.ErrSkip{}, "expected a pipe.ErrSkip but got %v", err)
2017-08-20 16:50:34 -03:00
}