(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestNewCreateCommand_Subcommands(t *testing.T) { |
| 56 | cmd := NewCreateCommand() |
| 57 | |
| 58 | expectedSubcommands := []string{"users", "ports", "passwords", "caches", "keys"} |
| 59 | for _, name := range expectedSubcommands { |
| 60 | found := false |
| 61 | for _, sub := range cmd.Commands() { |
| 62 | if sub.Name() == name { |
| 63 | found = true |
| 64 | break |
| 65 | } |
| 66 | } |
| 67 | assert.True(t, found, "expected subcommand %q to be registered", name) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestNewCreateCommand_SubcommandCount(t *testing.T) { |
| 72 | cmd := NewCreateCommand() |
nothing calls this directly
no test coverage detected