MCPcopy Index your code
hub / github.com/abiosoft/ishell / newCmd

Function newCmd

command_test.go:10–15  ·  view source on GitHub ↗
(name string, help string)

Source from the content-addressed store, hash-verified

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

Callers 6

TestAddCommandFunction · 0.85
TestDeleteCommandFunction · 0.85
TestFindCmdFunction · 0.85
TestFindAliasFunction · 0.85
TestHelpTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected