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

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mockfetcher
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	verification "github.com/koko1123/flow-go-1/model/verification"
    10  )
    11  
    12  // ChunkDataPackHandler is an autogenerated mock type for the ChunkDataPackHandler type
    13  type ChunkDataPackHandler struct {
    14  	mock.Mock
    15  }
    16  
    17  // HandleChunkDataPack provides a mock function with given fields: originID, response
    18  func (_m *ChunkDataPackHandler) HandleChunkDataPack(originID flow.Identifier, response *verification.ChunkDataPackResponse) {
    19  	_m.Called(originID, response)
    20  }
    21  
    22  // NotifyChunkDataPackSealed provides a mock function with given fields: chunkIndex, resultID
    23  func (_m *ChunkDataPackHandler) NotifyChunkDataPackSealed(chunkIndex uint64, resultID flow.Identifier) {
    24  	_m.Called(chunkIndex, resultID)
    25  }
    26  
    27  type mockConstructorTestingTNewChunkDataPackHandler interface {
    28  	mock.TestingT
    29  	Cleanup(func())
    30  }
    31  
    32  // NewChunkDataPackHandler creates a new instance of ChunkDataPackHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    33  func NewChunkDataPackHandler(t mockConstructorTestingTNewChunkDataPackHandler) *ChunkDataPackHandler {
    34  	mock := &ChunkDataPackHandler{}
    35  	mock.Mock.Test(t)
    36  
    37  	t.Cleanup(func() { mock.AssertExpectations(t) })
    38  
    39  	return mock
    40  }