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:
parent
3a4128b60f
commit
559f678361
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user