(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestNewAliasCommand_Subcommands(t *testing.T) { |
| 93 | cmd := NewAliasCommand() |
| 94 | |
| 95 | expectedSubcommands := []string{"list", "set", "unset"} |
| 96 | for _, name := range expectedSubcommands { |
| 97 | found := false |
| 98 | for _, sub := range cmd.Commands() { |
| 99 | if sub.Name() == name { |
| 100 | found = true |
| 101 | break |
| 102 | } |
| 103 | } |
| 104 | assert.True(t, found, "expected subcommand %q to be registered", name) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | func TestNewAliasCommand_SubcommandCount(t *testing.T) { |
| 109 | cmd := NewAliasCommand() |
nothing calls this directly
no test coverage detected