github.com/onflow/flow-go@v0.33.17/state/cluster/mock/params.go (about)

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