github.com/sergiusens/goreleaser@v0.34.3-0.20171009111917-ae6f7c157c5c/internal/testlib/skip.go (about) 1 package testlib 2 3 import ( 4 "testing" 5 6 "github.com/goreleaser/goreleaser/pipeline" 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.(pipeline.ErrSkip) 13 assert.True(t, ok) 14 }