mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
21 lines
349 B
Go
21 lines
349 B
Go
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)
|
|
}
|