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

Method Output

utils/git_utils_test.go:21–28  ·  view source on GitHub ↗
(name string, arg ...string)

Source from the content-addressed store, hash-verified

19}
20
21func (m *MockCommandExecutor) Output(name string, arg ...string) ([]byte, error) {
22 args := m.Called(name, arg)
23 // Lida com o caso de a saída ser nil
24 if args.Get(0) == nil {
25 return nil, args.Error(1)
26 }
27 return args.Get(0).([]byte), args.Error(1)
28}
29
30func TestGetGitInfo_InRepo(t *testing.T) {
31 mockExec := new(MockCommandExecutor)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected