github.com/koko1123/flow-go-1@v0.29.6/module/mock/chunk_verifier.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	chunks "github.com/koko1123/flow-go-1/model/chunks"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	verification "github.com/koko1123/flow-go-1/model/verification"
    10  )
    11  
    12  // ChunkVerifier is an autogenerated mock type for the ChunkVerifier type
    13  type ChunkVerifier struct {
    14  	mock.Mock
    15  }
    16  
    17  // Verify provides a mock function with given fields: ch
    18  func (_m *ChunkVerifier) Verify(ch *verification.VerifiableChunkData) ([]byte, chunks.ChunkFault, error) {
    19  	ret := _m.Called(ch)
    20  
    21  	var r0 []byte
    22  	if rf, ok := ret.Get(0).(func(*verification.VerifiableChunkData) []byte); ok {
    23  		r0 = rf(ch)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).([]byte)
    27  		}
    28  	}
    29  
    30  	var r1 chunks.ChunkFault
    31  	if rf, ok := ret.Get(1).(func(*verification.VerifiableChunkData) chunks.ChunkFault); ok {
    32  		r1 = rf(ch)
    33  	} else {
    34  		if ret.Get(1) != nil {
    35  			r1 = ret.Get(1).(chunks.ChunkFault)
    36  		}
    37  	}
    38  
    39  	var r2 error
    40  	if rf, ok := ret.Get(2).(func(*verification.VerifiableChunkData) error); ok {
    41  		r2 = rf(ch)
    42  	} else {
    43  		r2 = ret.Error(2)
    44  	}
    45  
    46  	return r0, r1, r2
    47  }
    48  
    49  type mockConstructorTestingTNewChunkVerifier interface {
    50  	mock.TestingT
    51  	Cleanup(func())
    52  }
    53  
    54  // NewChunkVerifier creates a new instance of ChunkVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    55  func NewChunkVerifier(t mockConstructorTestingTNewChunkVerifier) *ChunkVerifier {
    56  	mock := &ChunkVerifier{}
    57  	mock.Mock.Test(t)
    58  
    59  	t.Cleanup(func() { mock.AssertExpectations(t) })
    60  
    61  	return mock
    62  }