1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/build/build_test.go
Carlos Alexandro Becker 1ba1c0061f
fix: removed unused var
2018-01-28 11:48:39 -02:00

25 lines
499 B
Go

package build
import (
"testing"
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
"github.com/stretchr/testify/assert"
)
type dummy struct{}
func (*dummy) WithDefaults(build config.Build) config.Build {
return build
}
func (*dummy) Build(ctx *context.Context, build config.Build, options Options) error {
return nil
}
func TestRegisterAndGet(t *testing.T) {
var builder = &dummy{}
Register("dummy", builder)
assert.Equal(t, builder, For("dummy"))
}