...

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

Documentation: github.com/ory/fosite/internal

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ory/fosite/handler/openid (interfaces: OpenIDConnectRequestStorage)
     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  // MockOpenIDConnectRequestStorage is a mock of OpenIDConnectRequestStorage interface
    17  type MockOpenIDConnectRequestStorage struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockOpenIDConnectRequestStorageMockRecorder
    20  }
    21  
    22  // MockOpenIDConnectRequestStorageMockRecorder is the mock recorder for MockOpenIDConnectRequestStorage
    23  type MockOpenIDConnectRequestStorageMockRecorder struct {
    24  	mock *MockOpenIDConnectRequestStorage
    25  }
    26  
    27  // NewMockOpenIDConnectRequestStorage creates a new mock instance
    28  func NewMockOpenIDConnectRequestStorage(ctrl *gomock.Controller) *MockOpenIDConnectRequestStorage {
    29  	mock := &MockOpenIDConnectRequestStorage{ctrl: ctrl}
    30  	mock.recorder = &MockOpenIDConnectRequestStorageMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockOpenIDConnectRequestStorage) EXPECT() *MockOpenIDConnectRequestStorageMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // CreateOpenIDConnectSession mocks base method
    40  func (m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "CreateOpenIDConnectSession", arg0, arg1, arg2)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // CreateOpenIDConnectSession indicates an expected call of CreateOpenIDConnectSession
    48  func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).CreateOpenIDConnectSession), arg0, arg1, arg2)
    51  }
    52  
    53  // DeleteOpenIDConnectSession mocks base method
    54  func (m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(arg0 context.Context, arg1 string) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "DeleteOpenIDConnectSession", arg0, arg1)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // DeleteOpenIDConnectSession indicates an expected call of DeleteOpenIDConnectSession
    62  func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(arg0, arg1 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).DeleteOpenIDConnectSession), arg0, arg1)
    65  }
    66  
    67  // GetOpenIDConnectSession mocks base method
    68  func (m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) (fosite.Requester, error) {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "GetOpenIDConnectSession", arg0, arg1, arg2)
    71  	ret0, _ := ret[0].(fosite.Requester)
    72  	ret1, _ := ret[1].(error)
    73  	return ret0, ret1
    74  }
    75  
    76  // GetOpenIDConnectSession indicates an expected call of GetOpenIDConnectSession
    77  func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).GetOpenIDConnectSession), arg0, arg1, arg2)
    80  }
    81  

View as plain text