You've already forked go-semantic-release
style(internal/*): fix lint issues
This commit is contained in:
3
internal/cache/cache_test.go
vendored
3
internal/cache/cache_test.go
vendored
@@ -25,7 +25,8 @@ func TestReadCacheInvalidContent(t *testing.T) {
|
||||
|
||||
completePath := path.Join(path.Dir(dir), ".version")
|
||||
brokenContent := []byte("hello broken\ngo: lang\n")
|
||||
ioutil.WriteFile(completePath, brokenContent, 0644)
|
||||
err = ioutil.WriteFile(completePath, brokenContent, 0644)
|
||||
assert.NoError(t, err)
|
||||
|
||||
_, readError := cache.Read(dir)
|
||||
assert.Errorf(t, readError, "Should give error, when broken content")
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package ci_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -27,10 +26,8 @@ func TestCi(t *testing.T) {
|
||||
w, err := repository.Worktree()
|
||||
assert.NoError(t, err, "should get worktree")
|
||||
|
||||
w.Add(file.Name())
|
||||
|
||||
status, err := w.Status()
|
||||
fmt.Println(status)
|
||||
_, err = w.Add(file.Name())
|
||||
assert.NoError(t, err, "should add file")
|
||||
|
||||
gitUtilInMemory := &gitutil.GitUtil{
|
||||
Repository: repository,
|
||||
@@ -43,6 +40,7 @@ func TestCi(t *testing.T) {
|
||||
When: time.Now(),
|
||||
},
|
||||
})
|
||||
assert.NoError(t, err, "should commit")
|
||||
|
||||
testConfigs := []struct {
|
||||
service string
|
||||
|
||||
Reference in New Issue
Block a user