1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-11 13:38:41 +02:00

increased fpm coverage

This commit is contained in:
Carlos Alexandro Becker 2017-07-01 21:38:37 -03:00
parent 2becfecc8b
commit aaa1851427
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -93,3 +93,12 @@ func TestCreateFileDoesntExist(t *testing.T) {
}
assert.Error(Pipe{}.Run(ctx))
}
func TestCreatePathDoesntExist(t *testing.T) {
var assert = assert.New(t)
var ctx = &context.Context{}
assert.Contains(
create(ctx, "tar.gz", "/nope/noooo", "windowsarm64").Error(),
"no such file",
)
}