...

Source file src/github.com/ory/fosite/internal/revoke_handler.go

Documentation: github.com/ory/fosite/internal

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ory/fosite (interfaces: RevocationHandler)
     3  
     4  // Package internal is a generated GoMock package.
     5  package internal
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  
    13  	fosite "github.com/ory/fosite"
    14  )
    15  
    16  // MockRevocationHandler is a mock of RevocationHandler interface
    17  type MockRevocationHandler struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockRevocationHandlerMockRecorder
    20  }
    21  
    22  // MockRevocationHandlerMockRecorder is the mock recorder for MockRevocationHandler
    23  type MockRevocationHandlerMockRecorder struct {
    24  	mock *MockRevocationHandler
    25  }
    26  
    27  // NewMockRevocationHandler creates a new mock instance
    28  func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler {
    29  	mock := &MockRevocationHandler{ctrl: ctrl}
    30  	mock.recorder = &MockRevocationHandlerMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockRevocationHandler) EXPECT() *MockRevocationHandlerMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // RevokeToken mocks base method
    40  func (m *MockRevocationHandler) RevokeToken(arg0 context.Context, arg1 string, arg2 fosite.TokenType, arg3 fosite.Client) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "RevokeToken", arg0, arg1, arg2, arg3)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // RevokeToken indicates an expected call of RevokeToken
    48  func (mr *MockRevocationHandlerMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockRevocationHandler)(nil).RevokeToken), arg0, arg1, arg2, arg3)
    51  }
    52  

View as plain text