MCPcopy Create free account
hub / github.com/github/gh-aw / TestNewDeployCommand_RequiresRepoFlag

Function TestNewDeployCommand_RequiresRepoFlag

pkg/cli/deploy_command_test.go:75–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestNewDeployCommand_RequiresRepoFlag(t *testing.T) {
76 cmd := NewDeployCommand(func(string) error { return nil })
77 require.NotNil(t, cmd)
78 err := runDeployCommand(cmd, []string{"githubnext/agentics/ci-doctor"}, func(string) error { return nil })
79 require.Error(t, err)
80 assert.Contains(t, err.Error(), "either --repo (owner/repo) or --org must be provided")
81}
82
83func TestRunDeployCommand_RejectsRepoAndOrgTogether(t *testing.T) {
84 cmd := NewDeployCommand(func(string) error { return nil })

Callers

nothing calls this directly

Calls 3

NewDeployCommandFunction · 0.85
runDeployCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected