github.com/MetalBlockchain/metalgo@v1.11.9/vms/avm/block/mock_block.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MetalBlockchain/metalgo/vms/avm/block (interfaces: Block)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package=block -destination=vms/avm/block/mock_block.go github.com/MetalBlockchain/metalgo/vms/avm/block Block
     7  //
     8  
     9  // Package block is a generated GoMock package.
    10  package block
    11  
    12  import (
    13  	reflect "reflect"
    14  	time "time"
    15  
    16  	codec "github.com/MetalBlockchain/metalgo/codec"
    17  	ids "github.com/MetalBlockchain/metalgo/ids"
    18  	snow "github.com/MetalBlockchain/metalgo/snow"
    19  	txs "github.com/MetalBlockchain/metalgo/vms/avm/txs"
    20  	gomock "go.uber.org/mock/gomock"
    21  )
    22  
    23  // MockBlock is a mock of Block interface.
    24  type MockBlock struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockBlockMockRecorder
    27  }
    28  
    29  // MockBlockMockRecorder is the mock recorder for MockBlock.
    30  type MockBlockMockRecorder struct {
    31  	mock *MockBlock
    32  }
    33  
    34  // NewMockBlock creates a new mock instance.
    35  func NewMockBlock(ctrl *gomock.Controller) *MockBlock {
    36  	mock := &MockBlock{ctrl: ctrl}
    37  	mock.recorder = &MockBlockMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockBlock) EXPECT() *MockBlockMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // Bytes mocks base method.
    47  func (m *MockBlock) Bytes() []byte {
    48  	m.ctrl.T.Helper()
    49  	ret := m.ctrl.Call(m, "Bytes")
    50  	ret0, _ := ret[0].([]byte)
    51  	return ret0
    52  }
    53  
    54  // Bytes indicates an expected call of Bytes.
    55  func (mr *MockBlockMockRecorder) Bytes() *gomock.Call {
    56  	mr.mock.ctrl.T.Helper()
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockBlock)(nil).Bytes))
    58  }
    59  
    60  // Height mocks base method.
    61  func (m *MockBlock) Height() uint64 {
    62  	m.ctrl.T.Helper()
    63  	ret := m.ctrl.Call(m, "Height")
    64  	ret0, _ := ret[0].(uint64)
    65  	return ret0
    66  }
    67  
    68  // Height indicates an expected call of Height.
    69  func (mr *MockBlockMockRecorder) Height() *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBlock)(nil).Height))
    72  }
    73  
    74  // ID mocks base method.
    75  func (m *MockBlock) ID() ids.ID {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "ID")
    78  	ret0, _ := ret[0].(ids.ID)
    79  	return ret0
    80  }
    81  
    82  // ID indicates an expected call of ID.
    83  func (mr *MockBlockMockRecorder) ID() *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockBlock)(nil).ID))
    86  }
    87  
    88  // InitCtx mocks base method.
    89  func (m *MockBlock) InitCtx(arg0 *snow.Context) {
    90  	m.ctrl.T.Helper()
    91  	m.ctrl.Call(m, "InitCtx", arg0)
    92  }
    93  
    94  // InitCtx indicates an expected call of InitCtx.
    95  func (mr *MockBlockMockRecorder) InitCtx(arg0 any) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockBlock)(nil).InitCtx), arg0)
    98  }
    99  
   100  // MerkleRoot mocks base method.
   101  func (m *MockBlock) MerkleRoot() ids.ID {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "MerkleRoot")
   104  	ret0, _ := ret[0].(ids.ID)
   105  	return ret0
   106  }
   107  
   108  // MerkleRoot indicates an expected call of MerkleRoot.
   109  func (mr *MockBlockMockRecorder) MerkleRoot() *gomock.Call {
   110  	mr.mock.ctrl.T.Helper()
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MerkleRoot", reflect.TypeOf((*MockBlock)(nil).MerkleRoot))
   112  }
   113  
   114  // Parent mocks base method.
   115  func (m *MockBlock) Parent() ids.ID {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "Parent")
   118  	ret0, _ := ret[0].(ids.ID)
   119  	return ret0
   120  }
   121  
   122  // Parent indicates an expected call of Parent.
   123  func (mr *MockBlockMockRecorder) Parent() *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parent", reflect.TypeOf((*MockBlock)(nil).Parent))
   126  }
   127  
   128  // Timestamp mocks base method.
   129  func (m *MockBlock) Timestamp() time.Time {
   130  	m.ctrl.T.Helper()
   131  	ret := m.ctrl.Call(m, "Timestamp")
   132  	ret0, _ := ret[0].(time.Time)
   133  	return ret0
   134  }
   135  
   136  // Timestamp indicates an expected call of Timestamp.
   137  func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call {
   138  	mr.mock.ctrl.T.Helper()
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timestamp", reflect.TypeOf((*MockBlock)(nil).Timestamp))
   140  }
   141  
   142  // Txs mocks base method.
   143  func (m *MockBlock) Txs() []*txs.Tx {
   144  	m.ctrl.T.Helper()
   145  	ret := m.ctrl.Call(m, "Txs")
   146  	ret0, _ := ret[0].([]*txs.Tx)
   147  	return ret0
   148  }
   149  
   150  // Txs indicates an expected call of Txs.
   151  func (mr *MockBlockMockRecorder) Txs() *gomock.Call {
   152  	mr.mock.ctrl.T.Helper()
   153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Txs", reflect.TypeOf((*MockBlock)(nil).Txs))
   154  }
   155  
   156  // initialize mocks base method.
   157  func (m *MockBlock) initialize(arg0 []byte, arg1 codec.Manager) error {
   158  	m.ctrl.T.Helper()
   159  	ret := m.ctrl.Call(m, "initialize", arg0, arg1)
   160  	ret0, _ := ret[0].(error)
   161  	return ret0
   162  }
   163  
   164  // initialize indicates an expected call of initialize.
   165  func (mr *MockBlockMockRecorder) initialize(arg0, arg1 any) *gomock.Call {
   166  	mr.mock.ctrl.T.Helper()
   167  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "initialize", reflect.TypeOf((*MockBlock)(nil).initialize), arg0, arg1)
   168  }