MCPcopy Create free account
hub / github.com/diillson/chatcli / Run

Method Run

utils/exec_utils.go:8–8  ·  view source on GitHub ↗
(name string, arg ...string)

Source from the content-addressed store, hash-verified

6// Isso nos permite mockar a execução de comandos nos testes.
7type CommandExecutor interface {
8 Run(name string, arg ...string) error
9 Output(name string, arg ...string) ([]byte, error)
10}
11

Callers 15

TestMatchNoneFunction · 0.65
TestIsSensitiveEnvKeyFunction · 0.65
TestExpandPathFunction · 0.65
RunMethod · 0.65
TestShellQuoteFunction · 0.65
GetGitInfoFunction · 0.65
TestGetShellHistoryFunction · 0.65

Implementers 2

MockCommandExecutorutils/git_utils_test.go
OSCommandExecutorutils/exec_utils.go

Calls

no outgoing calls

Tested by 15

TestMatchNoneFunction · 0.52
TestIsSensitiveEnvKeyFunction · 0.52
TestExpandPathFunction · 0.52
TestShellQuoteFunction · 0.52
TestGetShellHistoryFunction · 0.52
TestClassifyErrorFunction · 0.52
TestResolveFamilyFunction · 0.52