mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
979f8632b7
* refactor: use require on all tests Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * refactor: use require on all tests Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
15 lines
321 B
Go
15 lines
321 B
Go
package testlib
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// AssertSkipped asserts that a pipe was skipped.
|
|
func AssertSkipped(t *testing.T, err error) {
|
|
_, ok := err.(pipe.ErrSkip)
|
|
require.True(t, ok, "expected a pipe.ErrSkip but got %v", err)
|
|
}
|