github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/cluster_payloads.go (about)

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