1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00
This commit is contained in:
Carlos Alexandro Becker
2017-01-14 12:34:22 -02:00
parent ae6c0d3063
commit ddec194c7e
18 changed files with 260 additions and 194 deletions

21
pipeline/git/log_test.go Normal file
View File

@ -0,0 +1,21 @@
package git
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLog(t *testing.T) {
assert := assert.New(t)
log, err := log("v0.1.9", "v0.2.0")
assert.NoError(err)
assert.NotEmpty(log)
}
func TestLogInvalidRef(t *testing.T) {
assert := assert.New(t)
log, err := log("wtfff", "nope")
assert.Error(err)
assert.Empty(log)
}