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

Function TestNewDeployCommand_RequiresWorkflowArg

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

Source from the content-addressed store, hash-verified

22}
23
24func TestNewDeployCommand_RequiresWorkflowArg(t *testing.T) {
25 cmd := NewDeployCommand(func(string) error { return nil })
26 require.NotNil(t, cmd)
27
28 err := cmd.Args(cmd, []string{})
29 require.Error(t, err)
30 assert.Contains(t, err.Error(), "missing workflow specification")
31}
32
33func TestNewDeployCommand_RegistersCoreFlags(t *testing.T) {
34 cmd := NewDeployCommand(func(string) error { return nil })

Callers

nothing calls this directly

Calls 2

NewDeployCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected