github.com/koko1123/flow-go-1@v0.29.6/state/protocol/mock/params.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  // 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  	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  	var r1 error
    27  	if rf, ok := ret.Get(1).(func() error); ok {
    28  		r1 = rf()
    29  	} else {
    30  		r1 = ret.Error(1)
    31  	}
    32  
    33  	return r0, r1
    34  }
    35  
    36  // ProtocolVersion provides a mock function with given fields:
    37  func (_m *Params) ProtocolVersion() (uint, error) {
    38  	ret := _m.Called()
    39  
    40  	var r0 uint
    41  	if rf, ok := ret.Get(0).(func() uint); ok {
    42  		r0 = rf()
    43  	} else {
    44  		r0 = ret.Get(0).(uint)
    45  	}
    46  
    47  	var r1 error
    48  	if rf, ok := ret.Get(1).(func() error); ok {
    49  		r1 = rf()
    50  	} else {
    51  		r1 = ret.Error(1)
    52  	}
    53  
    54  	return r0, r1
    55  }
    56  
    57  // Root provides a mock function with given fields:
    58  func (_m *Params) Root() (*flow.Header, error) {
    59  	ret := _m.Called()
    60  
    61  	var r0 *flow.Header
    62  	if rf, ok := ret.Get(0).(func() *flow.Header); ok {
    63  		r0 = rf()
    64  	} else {
    65  		if ret.Get(0) != nil {
    66  			r0 = ret.Get(0).(*flow.Header)
    67  		}
    68  	}
    69  
    70  	var r1 error
    71  	if rf, ok := ret.Get(1).(func() error); ok {
    72  		r1 = rf()
    73  	} else {
    74  		r1 = ret.Error(1)
    75  	}
    76  
    77  	return r0, r1
    78  }
    79  
    80  // Seal provides a mock function with given fields:
    81  func (_m *Params) Seal() (*flow.Seal, error) {
    82  	ret := _m.Called()
    83  
    84  	var r0 *flow.Seal
    85  	if rf, ok := ret.Get(0).(func() *flow.Seal); ok {
    86  		r0 = rf()
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(*flow.Seal)
    90  		}
    91  	}
    92  
    93  	var r1 error
    94  	if rf, ok := ret.Get(1).(func() error); ok {
    95  		r1 = rf()
    96  	} else {
    97  		r1 = ret.Error(1)
    98  	}
    99  
   100  	return r0, r1
   101  }
   102  
   103  // SporkID provides a mock function with given fields:
   104  func (_m *Params) SporkID() (flow.Identifier, error) {
   105  	ret := _m.Called()
   106  
   107  	var r0 flow.Identifier
   108  	if rf, ok := ret.Get(0).(func() flow.Identifier); ok {
   109  		r0 = rf()
   110  	} else {
   111  		if ret.Get(0) != nil {
   112  			r0 = ret.Get(0).(flow.Identifier)
   113  		}
   114  	}
   115  
   116  	var r1 error
   117  	if rf, ok := ret.Get(1).(func() error); ok {
   118  		r1 = rf()
   119  	} else {
   120  		r1 = ret.Error(1)
   121  	}
   122  
   123  	return r0, r1
   124  }
   125  
   126  type mockConstructorTestingTNewParams interface {
   127  	mock.TestingT
   128  	Cleanup(func())
   129  }
   130  
   131  // 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.
   132  func NewParams(t mockConstructorTestingTNewParams) *Params {
   133  	mock := &Params{}
   134  	mock.Mock.Test(t)
   135  
   136  	t.Cleanup(func() { mock.AssertExpectations(t) })
   137  
   138  	return mock
   139  }