github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/retention/retention_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../retention/types.go
     3  
     4  // Copyright (c) 2022 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package retention is a generated GoMock package.
    25  package retention
    26  
    27  import (
    28  	"reflect"
    29  	"time"
    30  
    31  	"github.com/golang/mock/gomock"
    32  )
    33  
    34  // MockOptions is a mock of Options interface.
    35  type MockOptions struct {
    36  	ctrl     *gomock.Controller
    37  	recorder *MockOptionsMockRecorder
    38  }
    39  
    40  // MockOptionsMockRecorder is the mock recorder for MockOptions.
    41  type MockOptionsMockRecorder struct {
    42  	mock *MockOptions
    43  }
    44  
    45  // NewMockOptions creates a new mock instance.
    46  func NewMockOptions(ctrl *gomock.Controller) *MockOptions {
    47  	mock := &MockOptions{ctrl: ctrl}
    48  	mock.recorder = &MockOptionsMockRecorder{mock}
    49  	return mock
    50  }
    51  
    52  // EXPECT returns an object that allows the caller to indicate expected use.
    53  func (m *MockOptions) EXPECT() *MockOptionsMockRecorder {
    54  	return m.recorder
    55  }
    56  
    57  // BlockDataExpiry mocks base method.
    58  func (m *MockOptions) BlockDataExpiry() bool {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "BlockDataExpiry")
    61  	ret0, _ := ret[0].(bool)
    62  	return ret0
    63  }
    64  
    65  // BlockDataExpiry indicates an expected call of BlockDataExpiry.
    66  func (mr *MockOptionsMockRecorder) BlockDataExpiry() *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockDataExpiry", reflect.TypeOf((*MockOptions)(nil).BlockDataExpiry))
    69  }
    70  
    71  // BlockDataExpiryAfterNotAccessedPeriod mocks base method.
    72  func (m *MockOptions) BlockDataExpiryAfterNotAccessedPeriod() time.Duration {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "BlockDataExpiryAfterNotAccessedPeriod")
    75  	ret0, _ := ret[0].(time.Duration)
    76  	return ret0
    77  }
    78  
    79  // BlockDataExpiryAfterNotAccessedPeriod indicates an expected call of BlockDataExpiryAfterNotAccessedPeriod.
    80  func (mr *MockOptionsMockRecorder) BlockDataExpiryAfterNotAccessedPeriod() *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockDataExpiryAfterNotAccessedPeriod", reflect.TypeOf((*MockOptions)(nil).BlockDataExpiryAfterNotAccessedPeriod))
    83  }
    84  
    85  // BlockSize mocks base method.
    86  func (m *MockOptions) BlockSize() time.Duration {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "BlockSize")
    89  	ret0, _ := ret[0].(time.Duration)
    90  	return ret0
    91  }
    92  
    93  // BlockSize indicates an expected call of BlockSize.
    94  func (mr *MockOptionsMockRecorder) BlockSize() *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockSize", reflect.TypeOf((*MockOptions)(nil).BlockSize))
    97  }
    98  
    99  // BufferFuture mocks base method.
   100  func (m *MockOptions) BufferFuture() time.Duration {
   101  	m.ctrl.T.Helper()
   102  	ret := m.ctrl.Call(m, "BufferFuture")
   103  	ret0, _ := ret[0].(time.Duration)
   104  	return ret0
   105  }
   106  
   107  // BufferFuture indicates an expected call of BufferFuture.
   108  func (mr *MockOptionsMockRecorder) BufferFuture() *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BufferFuture", reflect.TypeOf((*MockOptions)(nil).BufferFuture))
   111  }
   112  
   113  // BufferPast mocks base method.
   114  func (m *MockOptions) BufferPast() time.Duration {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "BufferPast")
   117  	ret0, _ := ret[0].(time.Duration)
   118  	return ret0
   119  }
   120  
   121  // BufferPast indicates an expected call of BufferPast.
   122  func (mr *MockOptionsMockRecorder) BufferPast() *gomock.Call {
   123  	mr.mock.ctrl.T.Helper()
   124  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BufferPast", reflect.TypeOf((*MockOptions)(nil).BufferPast))
   125  }
   126  
   127  // Equal mocks base method.
   128  func (m *MockOptions) Equal(value Options) bool {
   129  	m.ctrl.T.Helper()
   130  	ret := m.ctrl.Call(m, "Equal", value)
   131  	ret0, _ := ret[0].(bool)
   132  	return ret0
   133  }
   134  
   135  // Equal indicates an expected call of Equal.
   136  func (mr *MockOptionsMockRecorder) Equal(value interface{}) *gomock.Call {
   137  	mr.mock.ctrl.T.Helper()
   138  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockOptions)(nil).Equal), value)
   139  }
   140  
   141  // FutureRetentionPeriod mocks base method.
   142  func (m *MockOptions) FutureRetentionPeriod() time.Duration {
   143  	m.ctrl.T.Helper()
   144  	ret := m.ctrl.Call(m, "FutureRetentionPeriod")
   145  	ret0, _ := ret[0].(time.Duration)
   146  	return ret0
   147  }
   148  
   149  // FutureRetentionPeriod indicates an expected call of FutureRetentionPeriod.
   150  func (mr *MockOptionsMockRecorder) FutureRetentionPeriod() *gomock.Call {
   151  	mr.mock.ctrl.T.Helper()
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FutureRetentionPeriod", reflect.TypeOf((*MockOptions)(nil).FutureRetentionPeriod))
   153  }
   154  
   155  // RetentionPeriod mocks base method.
   156  func (m *MockOptions) RetentionPeriod() time.Duration {
   157  	m.ctrl.T.Helper()
   158  	ret := m.ctrl.Call(m, "RetentionPeriod")
   159  	ret0, _ := ret[0].(time.Duration)
   160  	return ret0
   161  }
   162  
   163  // RetentionPeriod indicates an expected call of RetentionPeriod.
   164  func (mr *MockOptionsMockRecorder) RetentionPeriod() *gomock.Call {
   165  	mr.mock.ctrl.T.Helper()
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetentionPeriod", reflect.TypeOf((*MockOptions)(nil).RetentionPeriod))
   167  }
   168  
   169  // SetBlockDataExpiry mocks base method.
   170  func (m *MockOptions) SetBlockDataExpiry(on bool) Options {
   171  	m.ctrl.T.Helper()
   172  	ret := m.ctrl.Call(m, "SetBlockDataExpiry", on)
   173  	ret0, _ := ret[0].(Options)
   174  	return ret0
   175  }
   176  
   177  // SetBlockDataExpiry indicates an expected call of SetBlockDataExpiry.
   178  func (mr *MockOptionsMockRecorder) SetBlockDataExpiry(on interface{}) *gomock.Call {
   179  	mr.mock.ctrl.T.Helper()
   180  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockDataExpiry", reflect.TypeOf((*MockOptions)(nil).SetBlockDataExpiry), on)
   181  }
   182  
   183  // SetBlockDataExpiryAfterNotAccessedPeriod mocks base method.
   184  func (m *MockOptions) SetBlockDataExpiryAfterNotAccessedPeriod(period time.Duration) Options {
   185  	m.ctrl.T.Helper()
   186  	ret := m.ctrl.Call(m, "SetBlockDataExpiryAfterNotAccessedPeriod", period)
   187  	ret0, _ := ret[0].(Options)
   188  	return ret0
   189  }
   190  
   191  // SetBlockDataExpiryAfterNotAccessedPeriod indicates an expected call of SetBlockDataExpiryAfterNotAccessedPeriod.
   192  func (mr *MockOptionsMockRecorder) SetBlockDataExpiryAfterNotAccessedPeriod(period interface{}) *gomock.Call {
   193  	mr.mock.ctrl.T.Helper()
   194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockDataExpiryAfterNotAccessedPeriod", reflect.TypeOf((*MockOptions)(nil).SetBlockDataExpiryAfterNotAccessedPeriod), period)
   195  }
   196  
   197  // SetBlockSize mocks base method.
   198  func (m *MockOptions) SetBlockSize(value time.Duration) Options {
   199  	m.ctrl.T.Helper()
   200  	ret := m.ctrl.Call(m, "SetBlockSize", value)
   201  	ret0, _ := ret[0].(Options)
   202  	return ret0
   203  }
   204  
   205  // SetBlockSize indicates an expected call of SetBlockSize.
   206  func (mr *MockOptionsMockRecorder) SetBlockSize(value interface{}) *gomock.Call {
   207  	mr.mock.ctrl.T.Helper()
   208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockSize", reflect.TypeOf((*MockOptions)(nil).SetBlockSize), value)
   209  }
   210  
   211  // SetBufferFuture mocks base method.
   212  func (m *MockOptions) SetBufferFuture(value time.Duration) Options {
   213  	m.ctrl.T.Helper()
   214  	ret := m.ctrl.Call(m, "SetBufferFuture", value)
   215  	ret0, _ := ret[0].(Options)
   216  	return ret0
   217  }
   218  
   219  // SetBufferFuture indicates an expected call of SetBufferFuture.
   220  func (mr *MockOptionsMockRecorder) SetBufferFuture(value interface{}) *gomock.Call {
   221  	mr.mock.ctrl.T.Helper()
   222  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferFuture", reflect.TypeOf((*MockOptions)(nil).SetBufferFuture), value)
   223  }
   224  
   225  // SetBufferPast mocks base method.
   226  func (m *MockOptions) SetBufferPast(value time.Duration) Options {
   227  	m.ctrl.T.Helper()
   228  	ret := m.ctrl.Call(m, "SetBufferPast", value)
   229  	ret0, _ := ret[0].(Options)
   230  	return ret0
   231  }
   232  
   233  // SetBufferPast indicates an expected call of SetBufferPast.
   234  func (mr *MockOptionsMockRecorder) SetBufferPast(value interface{}) *gomock.Call {
   235  	mr.mock.ctrl.T.Helper()
   236  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferPast", reflect.TypeOf((*MockOptions)(nil).SetBufferPast), value)
   237  }
   238  
   239  // SetFutureRetentionPeriod mocks base method.
   240  func (m *MockOptions) SetFutureRetentionPeriod(value time.Duration) Options {
   241  	m.ctrl.T.Helper()
   242  	ret := m.ctrl.Call(m, "SetFutureRetentionPeriod", value)
   243  	ret0, _ := ret[0].(Options)
   244  	return ret0
   245  }
   246  
   247  // SetFutureRetentionPeriod indicates an expected call of SetFutureRetentionPeriod.
   248  func (mr *MockOptionsMockRecorder) SetFutureRetentionPeriod(value interface{}) *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFutureRetentionPeriod", reflect.TypeOf((*MockOptions)(nil).SetFutureRetentionPeriod), value)
   251  }
   252  
   253  // SetRetentionPeriod mocks base method.
   254  func (m *MockOptions) SetRetentionPeriod(value time.Duration) Options {
   255  	m.ctrl.T.Helper()
   256  	ret := m.ctrl.Call(m, "SetRetentionPeriod", value)
   257  	ret0, _ := ret[0].(Options)
   258  	return ret0
   259  }
   260  
   261  // SetRetentionPeriod indicates an expected call of SetRetentionPeriod.
   262  func (mr *MockOptionsMockRecorder) SetRetentionPeriod(value interface{}) *gomock.Call {
   263  	mr.mock.ctrl.T.Helper()
   264  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRetentionPeriod", reflect.TypeOf((*MockOptions)(nil).SetRetentionPeriod), value)
   265  }
   266  
   267  // Validate mocks base method.
   268  func (m *MockOptions) Validate() error {
   269  	m.ctrl.T.Helper()
   270  	ret := m.ctrl.Call(m, "Validate")
   271  	ret0, _ := ret[0].(error)
   272  	return ret0
   273  }
   274  
   275  // Validate indicates an expected call of Validate.
   276  func (mr *MockOptionsMockRecorder) Validate() *gomock.Call {
   277  	mr.mock.ctrl.T.Helper()
   278  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate))
   279  }