This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
launchd.go
58 lines (48 loc) · 1.73 KB
/
launchd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Code generated by MockGen. DO NOT EDIT.
// Source: code.cloudfoundry.org/cfdev/cmd/stop (interfaces: Launchd)
// Package mocks is a generated GoMock package.
package mocks
import (
daemon "code.cloudfoundry.org/cfdev/daemon"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockLaunchd is a mock of Launchd interface
type MockLaunchd struct {
ctrl *gomock.Controller
recorder *MockLaunchdMockRecorder
}
// MockLaunchdMockRecorder is the mock recorder for MockLaunchd
type MockLaunchdMockRecorder struct {
mock *MockLaunchd
}
// NewMockLaunchd creates a new mock instance
func NewMockLaunchd(ctrl *gomock.Controller) *MockLaunchd {
mock := &MockLaunchd{ctrl: ctrl}
mock.recorder = &MockLaunchdMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockLaunchd) EXPECT() *MockLaunchdMockRecorder {
return m.recorder
}
// RemoveDaemon mocks base method
func (m *MockLaunchd) RemoveDaemon(arg0 daemon.DaemonSpec) error {
ret := m.ctrl.Call(m, "RemoveDaemon", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveDaemon indicates an expected call of RemoveDaemon
func (mr *MockLaunchdMockRecorder) RemoveDaemon(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveDaemon", reflect.TypeOf((*MockLaunchd)(nil).RemoveDaemon), arg0)
}
// Stop mocks base method
func (m *MockLaunchd) Stop(arg0 daemon.DaemonSpec) error {
ret := m.ctrl.Call(m, "Stop", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Stop indicates an expected call of Stop
func (mr *MockLaunchdMockRecorder) Stop(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockLaunchd)(nil).Stop), arg0)
}