github.com/tumi8/quic-go@v0.37.4-tum/mock_token_store_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: TokenStore) 3 4 // Package quic is a generated GoMock package. 5 package quic 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockTokenStore is a mock of TokenStore interface. 14 type MockTokenStore struct { 15 ctrl *gomock.Controller 16 recorder *MockTokenStoreMockRecorder 17 } 18 19 // MockTokenStoreMockRecorder is the mock recorder for MockTokenStore. 20 type MockTokenStoreMockRecorder struct { 21 mock *MockTokenStore 22 } 23 24 // NewMockTokenStore creates a new mock instance. 25 func NewMockTokenStore(ctrl *gomock.Controller) *MockTokenStore { 26 mock := &MockTokenStore{ctrl: ctrl} 27 mock.recorder = &MockTokenStoreMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockTokenStore) EXPECT() *MockTokenStoreMockRecorder { 33 return m.recorder 34 } 35 36 // Pop mocks base method. 37 func (m *MockTokenStore) Pop(arg0 string) *ClientToken { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Pop", arg0) 40 ret0, _ := ret[0].(*ClientToken) 41 return ret0 42 } 43 44 // Pop indicates an expected call of Pop. 45 func (mr *MockTokenStoreMockRecorder) Pop(arg0 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pop", reflect.TypeOf((*MockTokenStore)(nil).Pop), arg0) 48 } 49 50 // Put mocks base method. 51 func (m *MockTokenStore) Put(arg0 string, arg1 *ClientToken) { 52 m.ctrl.T.Helper() 53 m.ctrl.Call(m, "Put", arg0, arg1) 54 } 55 56 // Put indicates an expected call of Put. 57 func (mr *MockTokenStoreMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockTokenStore)(nil).Put), arg0, arg1) 60 }