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

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