1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

17 lines
353 B
Go
Raw Normal View History

package testlib
import (
"testing"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/stretchr/testify/require"
)
// RequireTemplateError requires thqt an error happens and that it is a template error.
func RequireTemplateError(tb testing.TB, err error) {
tb.Helper()
require.Error(tb, err)
require.ErrorAs(tb, err, &tmpl.Error{})
}