/
revoke_handler.go
55 lines (46 loc) · 1.82 KB
/
revoke_handler.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
// Code generated by MockGen. DO NOT EDIT.
// Source: authelia.com/provider/oauth2 (interfaces: RevocationHandler)
//
// Generated by this command:
//
// mockgen -package mock -destination testing/mock/revoke_handler.go authelia.com/provider/oauth2 RevocationHandler
//
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
oauth2 "authelia.com/provider/oauth2"
gomock "go.uber.org/mock/gomock"
)
// MockRevocationHandler is a mock of RevocationHandler interface.
type MockRevocationHandler struct {
ctrl *gomock.Controller
recorder *MockRevocationHandlerMockRecorder
}
// MockRevocationHandlerMockRecorder is the mock recorder for MockRevocationHandler.
type MockRevocationHandlerMockRecorder struct {
mock *MockRevocationHandler
}
// NewMockRevocationHandler creates a new mock instance.
func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler {
mock := &MockRevocationHandler{ctrl: ctrl}
mock.recorder = &MockRevocationHandlerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockRevocationHandler) EXPECT() *MockRevocationHandlerMockRecorder {
return m.recorder
}
// RevokeToken mocks base method.
func (m *MockRevocationHandler) RevokeToken(arg0 context.Context, arg1 string, arg2 oauth2.TokenType, arg3 oauth2.Client) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RevokeToken", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// RevokeToken indicates an expected call of RevokeToken.
func (mr *MockRevocationHandlerMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockRevocationHandler)(nil).RevokeToken), arg0, arg1, arg2, arg3)
}