(name string, help string)
| 8 | ) |
| 9 | |
| 10 | func newCmd(name string, help string) *ishell.Cmd { |
| 11 | return &ishell.Cmd{ |
| 12 | Name: name, |
| 13 | Help: help, |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func TestAddCommand(t *testing.T) { |
| 18 | cmd := newCmd("root", "") |
no outgoing calls
no test coverage detected