diff --git a/config/git/log_test.go b/config/git/log_test.go new file mode 100644 index 000000000..3ea1a605e --- /dev/null +++ b/config/git/log_test.go @@ -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) +}