MCPcopy Create free account
hub / github.com/convox/rack / Run

Method Run

pkg/mock/stdcli/executor.go:47–65  ·  view source on GitHub ↗

Run provides a mock function with given fields: w, cmd, args

(w io.Writer, cmd string, args ...string)

Source from the content-addressed store, hash-verified

45
46// Run provides a mock function with given fields: w, cmd, args
47func (_m *Executor) Run(w io.Writer, cmd string, args ...string) error {
48 _va := make([]interface{}, len(args))
49 for _i := range args {
50 _va[_i] = args[_i]
51 }
52 var _ca []interface{}
53 _ca = append(_ca, w, cmd)
54 _ca = append(_ca, _va...)
55 ret := _m.Called(_ca...)
56
57 var r0 error
58 if rf, ok := ret.Get(0).(func(io.Writer, string, ...string) error); ok {
59 r0 = rf(w, cmd, args...)
60 } else {
61 r0 = ret.Error(0)
62 }
63
64 return r0
65}
66
67// Terminal provides a mock function with given fields: cmd, args
68func (_m *Executor) Terminal(cmd string, args ...string) error {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected