diff --git a/pipeline/defaults/defaults.go b/pipeline/defaults/defaults.go index 2e45865e5..b0075ec56 100644 --- a/pipeline/defaults/defaults.go +++ b/pipeline/defaults/defaults.go @@ -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 { diff --git a/pipeline/defaults/remote_test.go b/pipeline/defaults/remote_test.go index 23500dff0..2469d7024 100644 --- a/pipeline/defaults/remote_test.go +++ b/pipeline/defaults/remote_test.go @@ -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) - } - }) - } -}