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

Method InstanceShell

pkg/structs/mock_Provider.go:577–595  ·  view source on GitHub ↗

InstanceShell provides a mock function with given fields: id, rw, opts

(id string, rw io.ReadWriter, opts InstanceShellOptions)

Source from the content-addressed store, hash-verified

575
576// InstanceShell provides a mock function with given fields: id, rw, opts
577func (_m *MockProvider) InstanceShell(id string, rw io.ReadWriter, opts InstanceShellOptions) (int, error) {
578 ret := _m.Called(id, rw, opts)
579
580 var r0 int
581 if rf, ok := ret.Get(0).(func(string, io.ReadWriter, InstanceShellOptions) int); ok {
582 r0 = rf(id, rw, opts)
583 } else {
584 r0 = ret.Get(0).(int)
585 }
586
587 var r1 error
588 if rf, ok := ret.Get(1).(func(string, io.ReadWriter, InstanceShellOptions) error); ok {
589 r1 = rf(id, rw, opts)
590 } else {
591 r1 = ret.Error(1)
592 }
593
594 return r0, r1
595}
596
597// InstanceTerminate provides a mock function with given fields: id
598func (_m *MockProvider) InstanceTerminate(id string) error {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected