github.com/apernet/quic-go@v0.43.1-0.20240515053213-5e9e635fd9f0/mock_token_store_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/apernet/quic-go (interfaces: TokenStore) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -package quic -self_package github.com/apernet/quic-go -self_package github.com/apernet/quic-go -destination mock_token_store_test.go github.com/apernet/quic-go TokenStore 7 // 8 9 // Package quic is a generated GoMock package. 10 package quic 11 12 import ( 13 reflect "reflect" 14 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockTokenStore is a mock of TokenStore interface. 19 type MockTokenStore struct { 20 ctrl *gomock.Controller 21 recorder *MockTokenStoreMockRecorder 22 } 23 24 // MockTokenStoreMockRecorder is the mock recorder for MockTokenStore. 25 type MockTokenStoreMockRecorder struct { 26 mock *MockTokenStore 27 } 28 29 // NewMockTokenStore creates a new mock instance. 30 func NewMockTokenStore(ctrl *gomock.Controller) *MockTokenStore { 31 mock := &MockTokenStore{ctrl: ctrl} 32 mock.recorder = &MockTokenStoreMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockTokenStore) EXPECT() *MockTokenStoreMockRecorder { 38 return m.recorder 39 } 40 41 // Pop mocks base method. 42 func (m *MockTokenStore) Pop(arg0 string) *ClientToken { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Pop", arg0) 45 ret0, _ := ret[0].(*ClientToken) 46 return ret0 47 } 48 49 // Pop indicates an expected call of Pop. 50 func (mr *MockTokenStoreMockRecorder) Pop(arg0 any) *MockTokenStorePopCall { 51 mr.mock.ctrl.T.Helper() 52 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pop", reflect.TypeOf((*MockTokenStore)(nil).Pop), arg0) 53 return &MockTokenStorePopCall{Call: call} 54 } 55 56 // MockTokenStorePopCall wrap *gomock.Call 57 type MockTokenStorePopCall struct { 58 *gomock.Call 59 } 60 61 // Return rewrite *gomock.Call.Return 62 func (c *MockTokenStorePopCall) Return(arg0 *ClientToken) *MockTokenStorePopCall { 63 c.Call = c.Call.Return(arg0) 64 return c 65 } 66 67 // Do rewrite *gomock.Call.Do 68 func (c *MockTokenStorePopCall) Do(f func(string) *ClientToken) *MockTokenStorePopCall { 69 c.Call = c.Call.Do(f) 70 return c 71 } 72 73 // DoAndReturn rewrite *gomock.Call.DoAndReturn 74 func (c *MockTokenStorePopCall) DoAndReturn(f func(string) *ClientToken) *MockTokenStorePopCall { 75 c.Call = c.Call.DoAndReturn(f) 76 return c 77 } 78 79 // Put mocks base method. 80 func (m *MockTokenStore) Put(arg0 string, arg1 *ClientToken) { 81 m.ctrl.T.Helper() 82 m.ctrl.Call(m, "Put", arg0, arg1) 83 } 84 85 // Put indicates an expected call of Put. 86 func (mr *MockTokenStoreMockRecorder) Put(arg0, arg1 any) *MockTokenStorePutCall { 87 mr.mock.ctrl.T.Helper() 88 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockTokenStore)(nil).Put), arg0, arg1) 89 return &MockTokenStorePutCall{Call: call} 90 } 91 92 // MockTokenStorePutCall wrap *gomock.Call 93 type MockTokenStorePutCall struct { 94 *gomock.Call 95 } 96 97 // Return rewrite *gomock.Call.Return 98 func (c *MockTokenStorePutCall) Return() *MockTokenStorePutCall { 99 c.Call = c.Call.Return() 100 return c 101 } 102 103 // Do rewrite *gomock.Call.Do 104 func (c *MockTokenStorePutCall) Do(f func(string, *ClientToken)) *MockTokenStorePutCall { 105 c.Call = c.Call.Do(f) 106 return c 107 } 108 109 // DoAndReturn rewrite *gomock.Call.DoAndReturn 110 func (c *MockTokenStorePutCall) DoAndReturn(f func(string, *ClientToken)) *MockTokenStorePutCall { 111 c.Call = c.Call.DoAndReturn(f) 112 return c 113 }