github.com/koko1123/flow-go-1@v0.29.6/engine/verification/fetcher/mock/assigned_chunk_processor.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mockfetcher
     4  
     5  import (
     6  	chunks "github.com/koko1123/flow-go-1/model/chunks"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	module "github.com/koko1123/flow-go-1/module"
    11  )
    12  
    13  // AssignedChunkProcessor is an autogenerated mock type for the AssignedChunkProcessor type
    14  type AssignedChunkProcessor struct {
    15  	mock.Mock
    16  }
    17  
    18  // Done provides a mock function with given fields:
    19  func (_m *AssignedChunkProcessor) Done() <-chan struct{} {
    20  	ret := _m.Called()
    21  
    22  	var r0 <-chan struct{}
    23  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    24  		r0 = rf()
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).(<-chan struct{})
    28  		}
    29  	}
    30  
    31  	return r0
    32  }
    33  
    34  // ProcessAssignedChunk provides a mock function with given fields: locator
    35  func (_m *AssignedChunkProcessor) ProcessAssignedChunk(locator *chunks.Locator) {
    36  	_m.Called(locator)
    37  }
    38  
    39  // Ready provides a mock function with given fields:
    40  func (_m *AssignedChunkProcessor) Ready() <-chan struct{} {
    41  	ret := _m.Called()
    42  
    43  	var r0 <-chan struct{}
    44  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    45  		r0 = rf()
    46  	} else {
    47  		if ret.Get(0) != nil {
    48  			r0 = ret.Get(0).(<-chan struct{})
    49  		}
    50  	}
    51  
    52  	return r0
    53  }
    54  
    55  // WithChunkConsumerNotifier provides a mock function with given fields: notifier
    56  func (_m *AssignedChunkProcessor) WithChunkConsumerNotifier(notifier module.ProcessingNotifier) {
    57  	_m.Called(notifier)
    58  }
    59  
    60  type mockConstructorTestingTNewAssignedChunkProcessor interface {
    61  	mock.TestingT
    62  	Cleanup(func())
    63  }
    64  
    65  // NewAssignedChunkProcessor creates a new instance of AssignedChunkProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    66  func NewAssignedChunkProcessor(t mockConstructorTestingTNewAssignedChunkProcessor) *AssignedChunkProcessor {
    67  	mock := &AssignedChunkProcessor{}
    68  	mock.Mock.Test(t)
    69  
    70  	t.Cleanup(func() { mock.AssertExpectations(t) })
    71  
    72  	return mock
    73  }