mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-26 04:22:05 +02:00
22 lines
350 B
Go
22 lines
350 B
Go
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)
|
|
}
|