github.com/goreleaser/releaser@v0.92.0/internal/testlib/skip.go (about) 1 package testlib 2 3 import ( 4 "testing" 5 6 "github.com/goreleaser/goreleaser/internal/pipe" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 // AssertSkipped asserts that a pipe was skipped 11 func AssertSkipped(t *testing.T, err error) { 12 _, ok := err.(pipe.ErrSkip) 13 assert.True(t, ok, "expected a pipe.ErrSkip but got %v", err) 14 }