...

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

Documentation: github.com/ory/fosite/internal

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

View as plain text