github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/mock_token_store_test.go (about)

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