-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathmocks_hooks_test.go
59 lines (48 loc) · 1.69 KB
/
mocks_hooks_test.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
59
// Code generated by MockGen. DO NOT EDIT.
// Source: hooks.go
// Package libbuildpack_test is a generated GoMock package.
package libbuildpack_test
import (
reflect "reflect"
. "github.com/cloudfoundry/libbuildpack"
gomock "github.com/golang/mock/gomock"
)
// MockHook is a mock of Hook interface
type MockHook struct {
ctrl *gomock.Controller
recorder *MockHookMockRecorder
}
// MockHookMockRecorder is the mock recorder for MockHook
type MockHookMockRecorder struct {
mock *MockHook
}
// NewMockHook creates a new mock instance
func NewMockHook(ctrl *gomock.Controller) *MockHook {
mock := &MockHook{ctrl: ctrl}
mock.recorder = &MockHookMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHook) EXPECT() *MockHookMockRecorder {
return m.recorder
}
// BeforeCompile mocks base method
func (m *MockHook) BeforeCompile(arg0 *Stager) error {
ret := m.ctrl.Call(m, "BeforeCompile", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// BeforeCompile indicates an expected call of BeforeCompile
func (mr *MockHookMockRecorder) BeforeCompile(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeCompile", reflect.TypeOf((*MockHook)(nil).BeforeCompile), arg0)
}
// AfterCompile mocks base method
func (m *MockHook) AfterCompile(arg0 *Stager) error {
ret := m.ctrl.Call(m, "AfterCompile", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// AfterCompile indicates an expected call of AfterCompile
func (mr *MockHookMockRecorder) AfterCompile(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterCompile", reflect.TypeOf((*MockHook)(nil).AfterCompile), arg0)
}