MCPcopy Index your code
hub / github.com/commander-cli/commander / Test_AddCommand

Function Test_AddCommand

pkg/app/add_command_test.go:8–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func Test_AddCommand(t *testing.T) {
9 content, err := AddCommand("echo hello", []byte{})
10
11 assert.Nil(t, err)
12 assert.Equal(t, "tests:\n echo hello:\n exit-code: 0\n stdout: hello\n", string(content))
13}
14
15func Test_AddCommand_AddToExisting(t *testing.T) {
16 existing := []byte(`

Callers

nothing calls this directly

Calls 1

AddCommandFunction · 0.85

Tested by

no test coverage detected