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

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // ComputationResultUploadStatus is an autogenerated mock type for the ComputationResultUploadStatus type
    11  type ComputationResultUploadStatus struct {
    12  	mock.Mock
    13  }
    14  
    15  // ByID provides a mock function with given fields: blockID
    16  func (_m *ComputationResultUploadStatus) ByID(blockID flow.Identifier) (bool, error) {
    17  	ret := _m.Called(blockID)
    18  
    19  	var r0 bool
    20  	if rf, ok := ret.Get(0).(func(flow.Identifier) bool); ok {
    21  		r0 = rf(blockID)
    22  	} else {
    23  		r0 = ret.Get(0).(bool)
    24  	}
    25  
    26  	var r1 error
    27  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    28  		r1 = rf(blockID)
    29  	} else {
    30  		r1 = ret.Error(1)
    31  	}
    32  
    33  	return r0, r1
    34  }
    35  
    36  // GetIDsByUploadStatus provides a mock function with given fields: targetUploadStatus
    37  func (_m *ComputationResultUploadStatus) GetIDsByUploadStatus(targetUploadStatus bool) ([]flow.Identifier, error) {
    38  	ret := _m.Called(targetUploadStatus)
    39  
    40  	var r0 []flow.Identifier
    41  	if rf, ok := ret.Get(0).(func(bool) []flow.Identifier); ok {
    42  		r0 = rf(targetUploadStatus)
    43  	} else {
    44  		if ret.Get(0) != nil {
    45  			r0 = ret.Get(0).([]flow.Identifier)
    46  		}
    47  	}
    48  
    49  	var r1 error
    50  	if rf, ok := ret.Get(1).(func(bool) error); ok {
    51  		r1 = rf(targetUploadStatus)
    52  	} else {
    53  		r1 = ret.Error(1)
    54  	}
    55  
    56  	return r0, r1
    57  }
    58  
    59  // Remove provides a mock function with given fields: blockID
    60  func (_m *ComputationResultUploadStatus) Remove(blockID flow.Identifier) error {
    61  	ret := _m.Called(blockID)
    62  
    63  	var r0 error
    64  	if rf, ok := ret.Get(0).(func(flow.Identifier) error); ok {
    65  		r0 = rf(blockID)
    66  	} else {
    67  		r0 = ret.Error(0)
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  // Upsert provides a mock function with given fields: blockID, wasUploadCompleted
    74  func (_m *ComputationResultUploadStatus) Upsert(blockID flow.Identifier, wasUploadCompleted bool) error {
    75  	ret := _m.Called(blockID, wasUploadCompleted)
    76  
    77  	var r0 error
    78  	if rf, ok := ret.Get(0).(func(flow.Identifier, bool) error); ok {
    79  		r0 = rf(blockID, wasUploadCompleted)
    80  	} else {
    81  		r0 = ret.Error(0)
    82  	}
    83  
    84  	return r0
    85  }
    86  
    87  type mockConstructorTestingTNewComputationResultUploadStatus interface {
    88  	mock.TestingT
    89  	Cleanup(func())
    90  }
    91  
    92  // NewComputationResultUploadStatus creates a new instance of ComputationResultUploadStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    93  func NewComputationResultUploadStatus(t mockConstructorTestingTNewComputationResultUploadStatus) *ComputationResultUploadStatus {
    94  	mock := &ComputationResultUploadStatus{}
    95  	mock.Mock.Test(t)
    96  
    97  	t.Cleanup(func() { mock.AssertExpectations(t) })
    98  
    99  	return mock
   100  }