1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

more boilerplate tests

This commit is contained in:
Carlos Alexandro Becker 2017-03-25 20:43:42 -03:00
parent 652f57ef2e
commit beb6aeafe4
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,10 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDescription(t *testing.T) {
assert.NotEmpty(t, Pipe{}.Description())
}
func TestNameWithDash(t *testing.T) {
assert.Equal(t, formulaNameFor("some-binary"), "SomeBinary")
}

View File

@ -6,6 +6,10 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDescription(t *testing.T) {
assert.NotEmpty(t, Pipe{}.Description())
}
func TestValid(t *testing.T) {
assert.True(t, valid("windows", "386"))
assert.True(t, valid("linux", "386"))

View File

@ -8,6 +8,10 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDescription(t *testing.T) {
assert.NotEmpty(t, Pipe{}.Description())
}
func TestFillBasicData(t *testing.T) {
assert := assert.New(t)

View File

@ -7,6 +7,10 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDescription(t *testing.T) {
assert.NotEmpty(t, Pipe{}.Description())
}
func TestDescription(t *testing.T) {
assert := assert.New(t)
desc := description("0abf342 some message")