Skip to content

Commit

Permalink
test: for tools/gone/*
Browse files Browse the repository at this point in the history
  • Loading branch information
dapeng committed May 25, 2024
1 parent 5b0cce0 commit b198293
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions tools/gone/mock/action.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mock

import (
log "github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
"os"
"path/filepath"
Expand Down Expand Up @@ -42,12 +41,7 @@ func doAction(fromfile, outfile string) error {
return err
}

defer func(outFile *os.File) {
err := outFile.Close()
if err != nil {
log.Error(err)
}
}(outFile)
defer outFile.Close()

if isInputFromPipe() {
return patchMock(os.Stdin, outFile)
Expand Down
3 changes: 0 additions & 3 deletions tools/gone/priest/testdata/x/goner.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ func Priest(cemetery gone.Cemetery) error {
//todo
return nil
}

//test//test//test//test//test
//test//test//test

0 comments on commit b198293

Please sign in to comment.