...

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

Documentation: github.com/ory/fosite/internal

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

View as plain text