github.com/koko1123/flow-go-1@v0.29.6/state/protocol/mock/cluster.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	cluster "github.com/koko1123/flow-go-1/model/cluster"
     7  	flow "github.com/koko1123/flow-go-1/model/flow"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // Cluster is an autogenerated mock type for the Cluster type
    13  type Cluster struct {
    14  	mock.Mock
    15  }
    16  
    17  // ChainID provides a mock function with given fields:
    18  func (_m *Cluster) ChainID() flow.ChainID {
    19  	ret := _m.Called()
    20  
    21  	var r0 flow.ChainID
    22  	if rf, ok := ret.Get(0).(func() flow.ChainID); ok {
    23  		r0 = rf()
    24  	} else {
    25  		r0 = ret.Get(0).(flow.ChainID)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // EpochCounter provides a mock function with given fields:
    32  func (_m *Cluster) EpochCounter() uint64 {
    33  	ret := _m.Called()
    34  
    35  	var r0 uint64
    36  	if rf, ok := ret.Get(0).(func() uint64); ok {
    37  		r0 = rf()
    38  	} else {
    39  		r0 = ret.Get(0).(uint64)
    40  	}
    41  
    42  	return r0
    43  }
    44  
    45  // Index provides a mock function with given fields:
    46  func (_m *Cluster) Index() uint {
    47  	ret := _m.Called()
    48  
    49  	var r0 uint
    50  	if rf, ok := ret.Get(0).(func() uint); ok {
    51  		r0 = rf()
    52  	} else {
    53  		r0 = ret.Get(0).(uint)
    54  	}
    55  
    56  	return r0
    57  }
    58  
    59  // Members provides a mock function with given fields:
    60  func (_m *Cluster) Members() flow.IdentityList {
    61  	ret := _m.Called()
    62  
    63  	var r0 flow.IdentityList
    64  	if rf, ok := ret.Get(0).(func() flow.IdentityList); ok {
    65  		r0 = rf()
    66  	} else {
    67  		if ret.Get(0) != nil {
    68  			r0 = ret.Get(0).(flow.IdentityList)
    69  		}
    70  	}
    71  
    72  	return r0
    73  }
    74  
    75  // RootBlock provides a mock function with given fields:
    76  func (_m *Cluster) RootBlock() *cluster.Block {
    77  	ret := _m.Called()
    78  
    79  	var r0 *cluster.Block
    80  	if rf, ok := ret.Get(0).(func() *cluster.Block); ok {
    81  		r0 = rf()
    82  	} else {
    83  		if ret.Get(0) != nil {
    84  			r0 = ret.Get(0).(*cluster.Block)
    85  		}
    86  	}
    87  
    88  	return r0
    89  }
    90  
    91  // RootQC provides a mock function with given fields:
    92  func (_m *Cluster) RootQC() *flow.QuorumCertificate {
    93  	ret := _m.Called()
    94  
    95  	var r0 *flow.QuorumCertificate
    96  	if rf, ok := ret.Get(0).(func() *flow.QuorumCertificate); ok {
    97  		r0 = rf()
    98  	} else {
    99  		if ret.Get(0) != nil {
   100  			r0 = ret.Get(0).(*flow.QuorumCertificate)
   101  		}
   102  	}
   103  
   104  	return r0
   105  }
   106  
   107  type mockConstructorTestingTNewCluster interface {
   108  	mock.TestingT
   109  	Cleanup(func())
   110  }
   111  
   112  // NewCluster creates a new instance of Cluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   113  func NewCluster(t mockConstructorTestingTNewCluster) *Cluster {
   114  	mock := &Cluster{}
   115  	mock.Mock.Test(t)
   116  
   117  	t.Cleanup(func() { mock.AssertExpectations(t) })
   118  
   119  	return mock
   120  }