(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func 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 | |
| 83 | func TestRunDeployCommand_RejectsRepoAndOrgTogether(t *testing.T) { |
| 84 | cmd := NewDeployCommand(func(string) error { return nil }) |
nothing calls this directly
no test coverage detected