github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/mock/global_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  // GlobalParams is an autogenerated mock type for the GlobalParams type
    11  type GlobalParams struct {
    12  	mock.Mock
    13  }
    14  
    15  // ChainID provides a mock function with given fields:
    16  func (_m *GlobalParams) ChainID() flow.ChainID {
    17  	ret := _m.Called()
    18  
    19  	var r0 flow.ChainID
    20  	if rf, ok := ret.Get(0).(func() flow.ChainID); ok {
    21  		r0 = rf()
    22  	} else {
    23  		r0 = ret.Get(0).(flow.ChainID)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // EpochCommitSafetyThreshold provides a mock function with given fields:
    30  func (_m *GlobalParams) EpochCommitSafetyThreshold() uint64 {
    31  	ret := _m.Called()
    32  
    33  	var r0 uint64
    34  	if rf, ok := ret.Get(0).(func() uint64); ok {
    35  		r0 = rf()
    36  	} else {
    37  		r0 = ret.Get(0).(uint64)
    38  	}
    39  
    40  	return r0
    41  }
    42  
    43  // ProtocolVersion provides a mock function with given fields:
    44  func (_m *GlobalParams) ProtocolVersion() uint {
    45  	ret := _m.Called()
    46  
    47  	var r0 uint
    48  	if rf, ok := ret.Get(0).(func() uint); ok {
    49  		r0 = rf()
    50  	} else {
    51  		r0 = ret.Get(0).(uint)
    52  	}
    53  
    54  	return r0
    55  }
    56  
    57  // SporkID provides a mock function with given fields:
    58  func (_m *GlobalParams) SporkID() flow.Identifier {
    59  	ret := _m.Called()
    60  
    61  	var r0 flow.Identifier
    62  	if rf, ok := ret.Get(0).(func() flow.Identifier); ok {
    63  		r0 = rf()
    64  	} else {
    65  		if ret.Get(0) != nil {
    66  			r0 = ret.Get(0).(flow.Identifier)
    67  		}
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  // SporkRootBlockHeight provides a mock function with given fields:
    74  func (_m *GlobalParams) SporkRootBlockHeight() uint64 {
    75  	ret := _m.Called()
    76  
    77  	var r0 uint64
    78  	if rf, ok := ret.Get(0).(func() uint64); ok {
    79  		r0 = rf()
    80  	} else {
    81  		r0 = ret.Get(0).(uint64)
    82  	}
    83  
    84  	return r0
    85  }
    86  
    87  type mockConstructorTestingTNewGlobalParams interface {
    88  	mock.TestingT
    89  	Cleanup(func())
    90  }
    91  
    92  // NewGlobalParams creates a new instance of GlobalParams. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    93  func NewGlobalParams(t mockConstructorTestingTNewGlobalParams) *GlobalParams {
    94  	mock := &GlobalParams{}
    95  	mock.Mock.Test(t)
    96  
    97  	t.Cleanup(func() { mock.AssertExpectations(t) })
    98  
    99  	return mock
   100  }