You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
ldflags template
This commit is contained in:
15
pipeline/git/commit_test.go
Normal file
15
pipeline/git/commit_test.go
Normal file
@ -0,0 +1,15 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCommit(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
commit, err := commitHash()
|
||||
assert.NoError(err)
|
||||
assert.NotEmpty(commit)
|
||||
assert.NotContains(commit, "'")
|
||||
}
|
Reference in New Issue
Block a user