github.com/0chain/gosdk@v1.17.11/zboxcore/mocks/RefEntity.go (about)

     1  // Code generated by mockery v2.28.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	common "github.com/0chain/gosdk/core/common"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // RefEntity is an autogenerated mock type for the RefEntity type
    12  type RefEntity struct {
    13  	mock.Mock
    14  }
    15  
    16  // CalculateHash provides a mock function with given fields:
    17  func (_m *RefEntity) CalculateHash() string {
    18  	ret := _m.Called()
    19  
    20  	var r0 string
    21  	if rf, ok := ret.Get(0).(func() string); ok {
    22  		r0 = rf()
    23  	} else {
    24  		r0 = ret.Get(0).(string)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  // GetCreatedAt provides a mock function with given fields:
    31  func (_m *RefEntity) GetCreatedAt() common.Timestamp {
    32  	ret := _m.Called()
    33  
    34  	var r0 common.Timestamp
    35  	if rf, ok := ret.Get(0).(func() common.Timestamp); ok {
    36  		r0 = rf()
    37  	} else {
    38  		r0 = ret.Get(0).(common.Timestamp)
    39  	}
    40  
    41  	return r0
    42  }
    43  
    44  // GetFileID provides a mock function with given fields:
    45  func (_m *RefEntity) GetFileID() string {
    46  	ret := _m.Called()
    47  
    48  	var r0 string
    49  	if rf, ok := ret.Get(0).(func() string); ok {
    50  		r0 = rf()
    51  	} else {
    52  		r0 = ret.Get(0).(string)
    53  	}
    54  
    55  	return r0
    56  }
    57  
    58  // GetFileMetaHash provides a mock function with given fields:
    59  func (_m *RefEntity) GetFileMetaHash() string {
    60  	ret := _m.Called()
    61  
    62  	var r0 string
    63  	if rf, ok := ret.Get(0).(func() string); ok {
    64  		r0 = rf()
    65  	} else {
    66  		r0 = ret.Get(0).(string)
    67  	}
    68  
    69  	return r0
    70  }
    71  
    72  // GetHash provides a mock function with given fields:
    73  func (_m *RefEntity) GetHash() string {
    74  	ret := _m.Called()
    75  
    76  	var r0 string
    77  	if rf, ok := ret.Get(0).(func() string); ok {
    78  		r0 = rf()
    79  	} else {
    80  		r0 = ret.Get(0).(string)
    81  	}
    82  
    83  	return r0
    84  }
    85  
    86  // GetLookupHash provides a mock function with given fields:
    87  func (_m *RefEntity) GetLookupHash() string {
    88  	ret := _m.Called()
    89  
    90  	var r0 string
    91  	if rf, ok := ret.Get(0).(func() string); ok {
    92  		r0 = rf()
    93  	} else {
    94  		r0 = ret.Get(0).(string)
    95  	}
    96  
    97  	return r0
    98  }
    99  
   100  // GetName provides a mock function with given fields:
   101  func (_m *RefEntity) GetName() string {
   102  	ret := _m.Called()
   103  
   104  	var r0 string
   105  	if rf, ok := ret.Get(0).(func() string); ok {
   106  		r0 = rf()
   107  	} else {
   108  		r0 = ret.Get(0).(string)
   109  	}
   110  
   111  	return r0
   112  }
   113  
   114  // GetNumBlocks provides a mock function with given fields:
   115  func (_m *RefEntity) GetNumBlocks() int64 {
   116  	ret := _m.Called()
   117  
   118  	var r0 int64
   119  	if rf, ok := ret.Get(0).(func() int64); ok {
   120  		r0 = rf()
   121  	} else {
   122  		r0 = ret.Get(0).(int64)
   123  	}
   124  
   125  	return r0
   126  }
   127  
   128  // GetPath provides a mock function with given fields:
   129  func (_m *RefEntity) GetPath() string {
   130  	ret := _m.Called()
   131  
   132  	var r0 string
   133  	if rf, ok := ret.Get(0).(func() string); ok {
   134  		r0 = rf()
   135  	} else {
   136  		r0 = ret.Get(0).(string)
   137  	}
   138  
   139  	return r0
   140  }
   141  
   142  // GetPathHash provides a mock function with given fields:
   143  func (_m *RefEntity) GetPathHash() string {
   144  	ret := _m.Called()
   145  
   146  	var r0 string
   147  	if rf, ok := ret.Get(0).(func() string); ok {
   148  		r0 = rf()
   149  	} else {
   150  		r0 = ret.Get(0).(string)
   151  	}
   152  
   153  	return r0
   154  }
   155  
   156  // GetSize provides a mock function with given fields:
   157  func (_m *RefEntity) GetSize() int64 {
   158  	ret := _m.Called()
   159  
   160  	var r0 int64
   161  	if rf, ok := ret.Get(0).(func() int64); ok {
   162  		r0 = rf()
   163  	} else {
   164  		r0 = ret.Get(0).(int64)
   165  	}
   166  
   167  	return r0
   168  }
   169  
   170  // GetType provides a mock function with given fields:
   171  func (_m *RefEntity) GetType() string {
   172  	ret := _m.Called()
   173  
   174  	var r0 string
   175  	if rf, ok := ret.Get(0).(func() string); ok {
   176  		r0 = rf()
   177  	} else {
   178  		r0 = ret.Get(0).(string)
   179  	}
   180  
   181  	return r0
   182  }
   183  
   184  // GetUpdatedAt provides a mock function with given fields:
   185  func (_m *RefEntity) GetUpdatedAt() common.Timestamp {
   186  	ret := _m.Called()
   187  
   188  	var r0 common.Timestamp
   189  	if rf, ok := ret.Get(0).(func() common.Timestamp); ok {
   190  		r0 = rf()
   191  	} else {
   192  		r0 = ret.Get(0).(common.Timestamp)
   193  	}
   194  
   195  	return r0
   196  }
   197  
   198  type mockConstructorTestingTNewRefEntity interface {
   199  	mock.TestingT
   200  	Cleanup(func())
   201  }
   202  
   203  // NewRefEntity creates a new instance of RefEntity. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   204  func NewRefEntity(t mockConstructorTestingTNewRefEntity) *RefEntity {
   205  	mock := &RefEntity{}
   206  	mock.Mock.Test(t)
   207  
   208  	t.Cleanup(func() { mock.AssertExpectations(t) })
   209  
   210  	return mock
   211  }