...

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

Documentation: github.com/ory/fosite/internal

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

View as plain text