github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/data/data_mocks_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/keybase/client/go/kbfs/data (interfaces: BlockWithPtrs)
     3  
     4  // Package data is a generated GoMock package.
     5  package data
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // MockBlockWithPtrs is a mock of BlockWithPtrs interface.
    14  type MockBlockWithPtrs struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockBlockWithPtrsMockRecorder
    17  }
    18  
    19  // MockBlockWithPtrsMockRecorder is the mock recorder for MockBlockWithPtrs.
    20  type MockBlockWithPtrsMockRecorder struct {
    21  	mock *MockBlockWithPtrs
    22  }
    23  
    24  // NewMockBlockWithPtrs creates a new mock instance.
    25  func NewMockBlockWithPtrs(ctrl *gomock.Controller) *MockBlockWithPtrs {
    26  	mock := &MockBlockWithPtrs{ctrl: ctrl}
    27  	mock.recorder = &MockBlockWithPtrsMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockBlockWithPtrs) EXPECT() *MockBlockWithPtrsMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // AppendNewIndirectPtr mocks base method.
    37  func (m *MockBlockWithPtrs) AppendNewIndirectPtr(arg0 BlockPointer, arg1 Offset) {
    38  	m.ctrl.T.Helper()
    39  	m.ctrl.Call(m, "AppendNewIndirectPtr", arg0, arg1)
    40  }
    41  
    42  // AppendNewIndirectPtr indicates an expected call of AppendNewIndirectPtr.
    43  func (mr *MockBlockWithPtrsMockRecorder) AppendNewIndirectPtr(arg0, arg1 interface{}) *gomock.Call {
    44  	mr.mock.ctrl.T.Helper()
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendNewIndirectPtr", reflect.TypeOf((*MockBlockWithPtrs)(nil).AppendNewIndirectPtr), arg0, arg1)
    46  }
    47  
    48  // BytesCanBeDirtied mocks base method.
    49  func (m *MockBlockWithPtrs) BytesCanBeDirtied() int64 {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "BytesCanBeDirtied")
    52  	ret0, _ := ret[0].(int64)
    53  	return ret0
    54  }
    55  
    56  // BytesCanBeDirtied indicates an expected call of BytesCanBeDirtied.
    57  func (mr *MockBlockWithPtrsMockRecorder) BytesCanBeDirtied() *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCanBeDirtied", reflect.TypeOf((*MockBlockWithPtrs)(nil).BytesCanBeDirtied))
    60  }
    61  
    62  // ClearIndirectPtrSize mocks base method.
    63  func (m *MockBlockWithPtrs) ClearIndirectPtrSize(arg0 int) {
    64  	m.ctrl.T.Helper()
    65  	m.ctrl.Call(m, "ClearIndirectPtrSize", arg0)
    66  }
    67  
    68  // ClearIndirectPtrSize indicates an expected call of ClearIndirectPtrSize.
    69  func (mr *MockBlockWithPtrsMockRecorder) ClearIndirectPtrSize(arg0 interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearIndirectPtrSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).ClearIndirectPtrSize), arg0)
    72  }
    73  
    74  // DataVersion mocks base method.
    75  func (m *MockBlockWithPtrs) DataVersion() Ver {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "DataVersion")
    78  	ret0, _ := ret[0].(Ver)
    79  	return ret0
    80  }
    81  
    82  // DataVersion indicates an expected call of DataVersion.
    83  func (mr *MockBlockWithPtrsMockRecorder) DataVersion() *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DataVersion", reflect.TypeOf((*MockBlockWithPtrs)(nil).DataVersion))
    86  }
    87  
    88  // FirstOffset mocks base method.
    89  func (m *MockBlockWithPtrs) FirstOffset() Offset {
    90  	m.ctrl.T.Helper()
    91  	ret := m.ctrl.Call(m, "FirstOffset")
    92  	ret0, _ := ret[0].(Offset)
    93  	return ret0
    94  }
    95  
    96  // FirstOffset indicates an expected call of FirstOffset.
    97  func (mr *MockBlockWithPtrsMockRecorder) FirstOffset() *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FirstOffset", reflect.TypeOf((*MockBlockWithPtrs)(nil).FirstOffset))
   100  }
   101  
   102  // GetEncodedSize mocks base method.
   103  func (m *MockBlockWithPtrs) GetEncodedSize() uint32 {
   104  	m.ctrl.T.Helper()
   105  	ret := m.ctrl.Call(m, "GetEncodedSize")
   106  	ret0, _ := ret[0].(uint32)
   107  	return ret0
   108  }
   109  
   110  // GetEncodedSize indicates an expected call of GetEncodedSize.
   111  func (mr *MockBlockWithPtrsMockRecorder) GetEncodedSize() *gomock.Call {
   112  	mr.mock.ctrl.T.Helper()
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncodedSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).GetEncodedSize))
   114  }
   115  
   116  // IndirectPtr mocks base method.
   117  func (m *MockBlockWithPtrs) IndirectPtr(arg0 int) (BlockInfo, Offset) {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "IndirectPtr", arg0)
   120  	ret0, _ := ret[0].(BlockInfo)
   121  	ret1, _ := ret[1].(Offset)
   122  	return ret0, ret1
   123  }
   124  
   125  // IndirectPtr indicates an expected call of IndirectPtr.
   126  func (mr *MockBlockWithPtrsMockRecorder) IndirectPtr(arg0 interface{}) *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndirectPtr", reflect.TypeOf((*MockBlockWithPtrs)(nil).IndirectPtr), arg0)
   129  }
   130  
   131  // IsIndirect mocks base method.
   132  func (m *MockBlockWithPtrs) IsIndirect() bool {
   133  	m.ctrl.T.Helper()
   134  	ret := m.ctrl.Call(m, "IsIndirect")
   135  	ret0, _ := ret[0].(bool)
   136  	return ret0
   137  }
   138  
   139  // IsIndirect indicates an expected call of IsIndirect.
   140  func (mr *MockBlockWithPtrsMockRecorder) IsIndirect() *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsIndirect", reflect.TypeOf((*MockBlockWithPtrs)(nil).IsIndirect))
   143  }
   144  
   145  // IsTail mocks base method.
   146  func (m *MockBlockWithPtrs) IsTail() bool {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "IsTail")
   149  	ret0, _ := ret[0].(bool)
   150  	return ret0
   151  }
   152  
   153  // IsTail indicates an expected call of IsTail.
   154  func (mr *MockBlockWithPtrsMockRecorder) IsTail() *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTail", reflect.TypeOf((*MockBlockWithPtrs)(nil).IsTail))
   157  }
   158  
   159  // NewEmptier mocks base method.
   160  func (m *MockBlockWithPtrs) NewEmptier() func() Block {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "NewEmptier")
   163  	ret0, _ := ret[0].(func() Block)
   164  	return ret0
   165  }
   166  
   167  // NewEmptier indicates an expected call of NewEmptier.
   168  func (mr *MockBlockWithPtrsMockRecorder) NewEmptier() *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEmptier", reflect.TypeOf((*MockBlockWithPtrs)(nil).NewEmptier))
   171  }
   172  
   173  // NewEmpty mocks base method.
   174  func (m *MockBlockWithPtrs) NewEmpty() Block {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "NewEmpty")
   177  	ret0, _ := ret[0].(Block)
   178  	return ret0
   179  }
   180  
   181  // NewEmpty indicates an expected call of NewEmpty.
   182  func (mr *MockBlockWithPtrsMockRecorder) NewEmpty() *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEmpty", reflect.TypeOf((*MockBlockWithPtrs)(nil).NewEmpty))
   185  }
   186  
   187  // NumIndirectPtrs mocks base method.
   188  func (m *MockBlockWithPtrs) NumIndirectPtrs() int {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "NumIndirectPtrs")
   191  	ret0, _ := ret[0].(int)
   192  	return ret0
   193  }
   194  
   195  // NumIndirectPtrs indicates an expected call of NumIndirectPtrs.
   196  func (mr *MockBlockWithPtrsMockRecorder) NumIndirectPtrs() *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumIndirectPtrs", reflect.TypeOf((*MockBlockWithPtrs)(nil).NumIndirectPtrs))
   199  }
   200  
   201  // OffsetExceedsData mocks base method.
   202  func (m *MockBlockWithPtrs) OffsetExceedsData(arg0, arg1 Offset) bool {
   203  	m.ctrl.T.Helper()
   204  	ret := m.ctrl.Call(m, "OffsetExceedsData", arg0, arg1)
   205  	ret0, _ := ret[0].(bool)
   206  	return ret0
   207  }
   208  
   209  // OffsetExceedsData indicates an expected call of OffsetExceedsData.
   210  func (mr *MockBlockWithPtrsMockRecorder) OffsetExceedsData(arg0, arg1 interface{}) *gomock.Call {
   211  	mr.mock.ctrl.T.Helper()
   212  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OffsetExceedsData", reflect.TypeOf((*MockBlockWithPtrs)(nil).OffsetExceedsData), arg0, arg1)
   213  }
   214  
   215  // Set mocks base method.
   216  func (m *MockBlockWithPtrs) Set(arg0 Block) {
   217  	m.ctrl.T.Helper()
   218  	m.ctrl.Call(m, "Set", arg0)
   219  }
   220  
   221  // Set indicates an expected call of Set.
   222  func (mr *MockBlockWithPtrsMockRecorder) Set(arg0 interface{}) *gomock.Call {
   223  	mr.mock.ctrl.T.Helper()
   224  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockBlockWithPtrs)(nil).Set), arg0)
   225  }
   226  
   227  // SetEncodedSize mocks base method.
   228  func (m *MockBlockWithPtrs) SetEncodedSize(arg0 uint32) {
   229  	m.ctrl.T.Helper()
   230  	m.ctrl.Call(m, "SetEncodedSize", arg0)
   231  }
   232  
   233  // SetEncodedSize indicates an expected call of SetEncodedSize.
   234  func (mr *MockBlockWithPtrsMockRecorder) SetEncodedSize(arg0 interface{}) *gomock.Call {
   235  	mr.mock.ctrl.T.Helper()
   236  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncodedSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetEncodedSize), arg0)
   237  }
   238  
   239  // SetIndirectPtrInfo mocks base method.
   240  func (m *MockBlockWithPtrs) SetIndirectPtrInfo(arg0 int, arg1 BlockInfo) {
   241  	m.ctrl.T.Helper()
   242  	m.ctrl.Call(m, "SetIndirectPtrInfo", arg0, arg1)
   243  }
   244  
   245  // SetIndirectPtrInfo indicates an expected call of SetIndirectPtrInfo.
   246  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrInfo(arg0, arg1 interface{}) *gomock.Call {
   247  	mr.mock.ctrl.T.Helper()
   248  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrInfo", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrInfo), arg0, arg1)
   249  }
   250  
   251  // SetIndirectPtrOff mocks base method.
   252  func (m *MockBlockWithPtrs) SetIndirectPtrOff(arg0 int, arg1 Offset) {
   253  	m.ctrl.T.Helper()
   254  	m.ctrl.Call(m, "SetIndirectPtrOff", arg0, arg1)
   255  }
   256  
   257  // SetIndirectPtrOff indicates an expected call of SetIndirectPtrOff.
   258  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrOff(arg0, arg1 interface{}) *gomock.Call {
   259  	mr.mock.ctrl.T.Helper()
   260  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrOff", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrOff), arg0, arg1)
   261  }
   262  
   263  // SetIndirectPtrType mocks base method.
   264  func (m *MockBlockWithPtrs) SetIndirectPtrType(arg0 int, arg1 BlockDirectType) {
   265  	m.ctrl.T.Helper()
   266  	m.ctrl.Call(m, "SetIndirectPtrType", arg0, arg1)
   267  }
   268  
   269  // SetIndirectPtrType indicates an expected call of SetIndirectPtrType.
   270  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrType(arg0, arg1 interface{}) *gomock.Call {
   271  	mr.mock.ctrl.T.Helper()
   272  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrType", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrType), arg0, arg1)
   273  }
   274  
   275  // SwapIndirectPtrs mocks base method.
   276  func (m *MockBlockWithPtrs) SwapIndirectPtrs(arg0 int, arg1 BlockWithPtrs, arg2 int) {
   277  	m.ctrl.T.Helper()
   278  	m.ctrl.Call(m, "SwapIndirectPtrs", arg0, arg1, arg2)
   279  }
   280  
   281  // SwapIndirectPtrs indicates an expected call of SwapIndirectPtrs.
   282  func (mr *MockBlockWithPtrsMockRecorder) SwapIndirectPtrs(arg0, arg1, arg2 interface{}) *gomock.Call {
   283  	mr.mock.ctrl.T.Helper()
   284  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwapIndirectPtrs", reflect.TypeOf((*MockBlockWithPtrs)(nil).SwapIndirectPtrs), arg0, arg1, arg2)
   285  }
   286  
   287  // ToCommonBlock mocks base method.
   288  func (m *MockBlockWithPtrs) ToCommonBlock() *CommonBlock {
   289  	m.ctrl.T.Helper()
   290  	ret := m.ctrl.Call(m, "ToCommonBlock")
   291  	ret0, _ := ret[0].(*CommonBlock)
   292  	return ret0
   293  }
   294  
   295  // ToCommonBlock indicates an expected call of ToCommonBlock.
   296  func (mr *MockBlockWithPtrsMockRecorder) ToCommonBlock() *gomock.Call {
   297  	mr.mock.ctrl.T.Helper()
   298  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ToCommonBlock", reflect.TypeOf((*MockBlockWithPtrs)(nil).ToCommonBlock))
   299  }