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

coverage increased on brew pipe

This commit is contained in:
Carlos Alexandro Becker 2017-07-03 01:24:26 -03:00
parent 3a4128b60f
commit 559f678361
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -208,9 +208,25 @@ func TestRunPipeBrewNotSetup(t *testing.T) {
assert.False(client.CreatedFile)
}
func TestRunPipeNoDarwinBuild(t *testing.T) {
func TestRunPipeBinaryRelease(t *testing.T) {
assert := assert.New(t)
var ctx = &context.Context{}
var ctx = &context.Context{
Publish: true,
Config: config.Project{
Archive: config.Archive{
Format: "binary",
},
Brew: config.Homebrew{
GitHub: config.Repo{
Owner: "test",
Name: "test",
},
},
},
Folders: map[string]string{
"darwinamd64": "bin",
},
}
client := &DummyClient{}
assert.NoError(doRun(ctx, client))
assert.False(client.CreatedFile)