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