full lint fix

This commit is contained in:
Parth 2021-10-08 17:38:56 -04:00
parent 28bfd8e773
commit 3001afda77
2 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,40 @@
package rename
import (
"testing"
)
func TestNewCmdRename(t * testing.T) {
tests := []struct {
name string
tty bool
input string
output RenameOptions
wantErr bool
errMsg string
}{
{
name: "no argument",
tty: true,
input: "",
output: RenameOptions{},
},
{
name: "argument",
tty: true,
input: "cli/cli",
output: RenameOptions{
DestArg: "cli comand-line-interface",
},
},
{
name: "incorrect argument",
tty: true,
input: "",
output: RenameOptions{
DestArg: "cli ",
},
},
}
}

View file

@ -8,9 +8,9 @@ import (
repoForkCmd "github.com/cli/cli/v2/pkg/cmd/repo/fork"
gardenCmd "github.com/cli/cli/v2/pkg/cmd/repo/garden"
repoListCmd "github.com/cli/cli/v2/pkg/cmd/repo/list"
repoRenameCmd "github.com/cli/cli/v2/pkg/cmd/repo/rename"
repoSyncCmd "github.com/cli/cli/v2/pkg/cmd/repo/sync"
repoViewCmd "github.com/cli/cli/v2/pkg/cmd/repo/view"
repoRenameCmd "github.com/cli/cli/v2/pkg/cmd/repo/rename"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)