github.com/MerlinKodo/quic-go@v0.39.2/internal/mocks/tls/client_session_cache.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: crypto/tls (interfaces: ClientSessionCache) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package mocktls -destination tls/client_session_cache.go crypto/tls ClientSessionCache 7 // 8 // Package mocktls is a generated GoMock package. 9 package mocktls 10 11 import ( 12 tls "crypto/tls" 13 reflect "reflect" 14 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockClientSessionCache is a mock of ClientSessionCache interface. 19 type MockClientSessionCache struct { 20 ctrl *gomock.Controller 21 recorder *MockClientSessionCacheMockRecorder 22 } 23 24 // MockClientSessionCacheMockRecorder is the mock recorder for MockClientSessionCache. 25 type MockClientSessionCacheMockRecorder struct { 26 mock *MockClientSessionCache 27 } 28 29 // NewMockClientSessionCache creates a new mock instance. 30 func NewMockClientSessionCache(ctrl *gomock.Controller) *MockClientSessionCache { 31 mock := &MockClientSessionCache{ctrl: ctrl} 32 mock.recorder = &MockClientSessionCacheMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockClientSessionCache) EXPECT() *MockClientSessionCacheMockRecorder { 38 return m.recorder 39 } 40 41 // Get mocks base method. 42 func (m *MockClientSessionCache) Get(arg0 string) (*tls.ClientSessionState, bool) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Get", arg0) 45 ret0, _ := ret[0].(*tls.ClientSessionState) 46 ret1, _ := ret[1].(bool) 47 return ret0, ret1 48 } 49 50 // Get indicates an expected call of Get. 51 func (mr *MockClientSessionCacheMockRecorder) Get(arg0 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClientSessionCache)(nil).Get), arg0) 54 } 55 56 // Put mocks base method. 57 func (m *MockClientSessionCache) Put(arg0 string, arg1 *tls.ClientSessionState) { 58 m.ctrl.T.Helper() 59 m.ctrl.Call(m, "Put", arg0, arg1) 60 } 61 62 // Put indicates an expected call of Put. 63 func (mr *MockClientSessionCacheMockRecorder) Put(arg0, arg1 any) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockClientSessionCache)(nil).Put), arg0, arg1) 66 }