full lint fix
This commit is contained in:
parent
28bfd8e773
commit
3001afda77
2 changed files with 41 additions and 1 deletions
40
pkg/cmd/repo/rename/rename_test.go
Normal file
40
pkg/cmd/repo/rename/rename_test.go
Normal 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 ",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue