1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/cmd/helper_test.go
Carlos Alexandro Becker 622c426eb3
refactor: --skip=item (#4272)
Laying the ground work to allow skipping more pipes without adding new
flags et al.

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-09-16 17:01:20 -03:00

17 lines
384 B
Go

package cmd
import (
"testing"
"github.com/goreleaser/goreleaser/internal/skips"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/stretchr/testify/require"
)
func requireAll(tb testing.TB, ctx *context.Context, keys ...skips.Key) {
tb.Helper()
for _, key := range keys {
require.True(tb, ctx.Skips[string(key)], "expected %q to be true, but was false", key)
}
}