mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
622c426eb3
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>
17 lines
384 B
Go
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)
|
|
}
|
|
}
|