1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

ldflags template

This commit is contained in:
Carlos Alexandro Becker
2017-03-25 20:24:38 -03:00
parent 9a71fba785
commit 4af2cb00ea
14 changed files with 224 additions and 56 deletions

View 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, "'")
}