1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

cleaning up

This commit is contained in:
Carlos Alexandro Becker 2017-07-01 21:52:04 -03:00
parent aaa1851427
commit b41b2f7bd8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 0 additions and 65 deletions

View File

@ -75,7 +75,6 @@ func setBuildDefaults(ctx *context.Context) {
buildWithDefaults(ctx, ctx.Config.SingleBuild),
}
}
log.WithField("builds", ctx.Config.Builds).Info("set")
}
func buildWithDefaults(ctx *context.Context, build config.Build) config.Build {

View File

@ -1,10 +1,8 @@
package defaults
import (
"reflect"
"testing"
"github.com/goreleaser/goreleaser/config"
"github.com/stretchr/testify/assert"
)
@ -26,65 +24,3 @@ func TestExtractReporFromHttpsURL(t *testing.T) {
repo := extractRepoFromURL("https://github.com/goreleaser/goreleaser.git")
assert.Equal("goreleaser/goreleaser", repo.String())
}
func Test_remoteRepo(t *testing.T) {
tests := []struct {
name string
wantResult config.Repo
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
gotResult, err := remoteRepo()
if (err != nil) != tt.wantErr {
t.Errorf("remoteRepo() error = %v, wantErr %v", err, tt.wantErr)
return
}
if !reflect.DeepEqual(gotResult, tt.wantResult) {
t.Errorf("remoteRepo() = %v, want %v", gotResult, tt.wantResult)
}
})
}
}
func Test_extractRepoFromURL(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
want config.Repo
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := extractRepoFromURL(tt.args.s); !reflect.DeepEqual(got, tt.want) {
t.Errorf("extractRepoFromURL() = %v, want %v", got, tt.want)
}
})
}
}
func Test_toRepo(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
want config.Repo
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := toRepo(tt.args.s); !reflect.DeepEqual(got, tt.want) {
t.Errorf("toRepo() = %v, want %v", got, tt.want)
}
})
}
}