mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
git log tests
This commit is contained in:
parent
4011a32ab5
commit
c84623a0cc
20
config/git/log_test.go
Normal file
20
config/git/log_test.go
Normal file
@ -0,0 +1,20 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestLog(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
log, err := Log("v0.0.1", "v0.1.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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user