Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
7
type
CommandExecutor
interface
{
8
Run(name string, arg ...string) error
9
Output(name string, arg ...string) ([]byte, error)
10
}
11
Callers
15
TestBinary_PrintsTotalPercent
Function · 0.65
TestBinary_ExitsNonZeroOnMissingFile
Function · 0.65
TestMatchNone
Function · 0.65
TestSanitizeSensitiveText_TableDriven
Function · 0.65
TestIsSensitiveEnvKey
Function · 0.65
TestExpandPath
Function · 0.65
Run
Method · 0.65
TestShellQuote
Function · 0.65
TestProcessDirectory_WithLimits
Function · 0.65
TestReadFileContent_Errors
Function · 0.65
GetGitInfo
Function · 0.65
TestGetShellHistory
Function · 0.65
Implementers
2
MockCommandExecutor
utils/git_utils_test.go
OSCommandExecutor
utils/exec_utils.go
Calls
no outgoing calls
Tested by
15
TestBinary_PrintsTotalPercent
Function · 0.52
TestBinary_ExitsNonZeroOnMissingFile
Function · 0.52
TestMatchNone
Function · 0.52
TestSanitizeSensitiveText_TableDriven
Function · 0.52
TestIsSensitiveEnvKey
Function · 0.52
TestExpandPath
Function · 0.52
TestShellQuote
Function · 0.52
TestProcessDirectory_WithLimits
Function · 0.52
TestReadFileContent_Errors
Function · 0.52
TestGetShellHistory
Function · 0.52
TestClassifyError
Function · 0.52
TestResolveFamily
Function · 0.52