github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/execution/ingestion/uploader/mock/uploader.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	execution "github.com/onflow/flow-go/engine/execution"
     9  )
    10  
    11  // Uploader is an autogenerated mock type for the Uploader type
    12  type Uploader struct {
    13  	mock.Mock
    14  }
    15  
    16  // Upload provides a mock function with given fields: computationResult
    17  func (_m *Uploader) Upload(computationResult *execution.ComputationResult) error {
    18  	ret := _m.Called(computationResult)
    19  
    20  	var r0 error
    21  	if rf, ok := ret.Get(0).(func(*execution.ComputationResult) error); ok {
    22  		r0 = rf(computationResult)
    23  	} else {
    24  		r0 = ret.Error(0)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  type mockConstructorTestingTNewUploader interface {
    31  	mock.TestingT
    32  	Cleanup(func())
    33  }
    34  
    35  // NewUploader creates a new instance of Uploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    36  func NewUploader(t mockConstructorTestingTNewUploader) *Uploader {
    37  	mock := &Uploader{}
    38  	mock.Mock.Test(t)
    39  
    40  	t.Cleanup(func() { mock.AssertExpectations(t) })
    41  
    42  	return mock
    43  }