github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/snowman/block/mock_with_verify_context.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MetalBlockchain/metalgo/snow/engine/snowman/block (interfaces: WithVerifyContext)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package=block -destination=snow/engine/snowman/block/mock_with_verify_context.go github.com/MetalBlockchain/metalgo/snow/engine/snowman/block WithVerifyContext
     7  //
     8  
     9  // Package block is a generated GoMock package.
    10  package block
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockWithVerifyContext is a mock of WithVerifyContext interface.
    20  type MockWithVerifyContext struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockWithVerifyContextMockRecorder
    23  }
    24  
    25  // MockWithVerifyContextMockRecorder is the mock recorder for MockWithVerifyContext.
    26  type MockWithVerifyContextMockRecorder struct {
    27  	mock *MockWithVerifyContext
    28  }
    29  
    30  // NewMockWithVerifyContext creates a new mock instance.
    31  func NewMockWithVerifyContext(ctrl *gomock.Controller) *MockWithVerifyContext {
    32  	mock := &MockWithVerifyContext{ctrl: ctrl}
    33  	mock.recorder = &MockWithVerifyContextMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockWithVerifyContext) EXPECT() *MockWithVerifyContextMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // ShouldVerifyWithContext mocks base method.
    43  func (m *MockWithVerifyContext) ShouldVerifyWithContext(arg0 context.Context) (bool, error) {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "ShouldVerifyWithContext", arg0)
    46  	ret0, _ := ret[0].(bool)
    47  	ret1, _ := ret[1].(error)
    48  	return ret0, ret1
    49  }
    50  
    51  // ShouldVerifyWithContext indicates an expected call of ShouldVerifyWithContext.
    52  func (mr *MockWithVerifyContextMockRecorder) ShouldVerifyWithContext(arg0 any) *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldVerifyWithContext", reflect.TypeOf((*MockWithVerifyContext)(nil).ShouldVerifyWithContext), arg0)
    55  }
    56  
    57  // VerifyWithContext mocks base method.
    58  func (m *MockWithVerifyContext) VerifyWithContext(arg0 context.Context, arg1 *Context) error {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "VerifyWithContext", arg0, arg1)
    61  	ret0, _ := ret[0].(error)
    62  	return ret0
    63  }
    64  
    65  // VerifyWithContext indicates an expected call of VerifyWithContext.
    66  func (mr *MockWithVerifyContextMockRecorder) VerifyWithContext(arg0, arg1 any) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyWithContext", reflect.TypeOf((*MockWithVerifyContext)(nil).VerifyWithContext), arg0, arg1)
    69  }