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

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