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

Function TestNewProjectCommand

pkg/cli/project_command_test.go:12–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestNewProjectCommand(t *testing.T) {
13 cmd := NewProjectCommand()
14 require.NotNil(t, cmd, "Command should be created")
15 assert.Equal(t, "project", cmd.Use, "Command name should be 'project'")
16 assert.Equal(t, "Create GitHub Projects V2 boards", cmd.Short, "Short description should describe project creation")
17 assert.Contains(t, cmd.Long, "Create GitHub Projects V2 boards linked to repositories.", "Long description should describe creation behavior")
18 assert.NotEmpty(t, cmd.Commands(), "Command should have subcommands")
19}
20
21func TestNewProjectNewCommand(t *testing.T) {
22 cmd := NewProjectNewCommand()

Callers

nothing calls this directly

Calls 1

NewProjectCommandFunction · 0.85

Tested by

no test coverage detected