-
Notifications
You must be signed in to change notification settings - Fork 467
/
mocks.go
57 lines (48 loc) · 1.76 KB
/
mocks.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
// Code generated by MockGen. DO NOT EDIT.
// Source: k8s.io/apiserver/pkg/authorization/authorizer (interfaces: Authorizer)
//
// Generated by this command:
//
// mockgen -package authorizer -destination=mocks.go k8s.io/apiserver/pkg/authorization/authorizer Authorizer
//
// Package authorizer is a generated GoMock package.
package authorizer
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
authorizer "k8s.io/apiserver/pkg/authorization/authorizer"
)
// MockAuthorizer is a mock of Authorizer interface.
type MockAuthorizer struct {
ctrl *gomock.Controller
recorder *MockAuthorizerMockRecorder
}
// MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
type MockAuthorizerMockRecorder struct {
mock *MockAuthorizer
}
// NewMockAuthorizer creates a new mock instance.
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer {
mock := &MockAuthorizer{ctrl: ctrl}
mock.recorder = &MockAuthorizerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder {
return m.recorder
}
// Authorize mocks base method.
func (m *MockAuthorizer) Authorize(arg0 context.Context, arg1 authorizer.Attributes) (authorizer.Decision, string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Authorize", arg0, arg1)
ret0, _ := ret[0].(authorizer.Decision)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Authorize indicates an expected call of Authorize.
func (mr *MockAuthorizerMockRecorder) Authorize(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authorize", reflect.TypeOf((*MockAuthorizer)(nil).Authorize), arg0, arg1)
}