github.com/koko1123/flow-go-1@v0.29.6/module/mock/ping_metrics.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  	time "time"
    10  )
    11  
    12  // PingMetrics is an autogenerated mock type for the PingMetrics type
    13  type PingMetrics struct {
    14  	mock.Mock
    15  }
    16  
    17  // NodeInfo provides a mock function with given fields: node, nodeInfo, version, sealedHeight, hotstuffCurView
    18  func (_m *PingMetrics) NodeInfo(node *flow.Identity, nodeInfo string, version string, sealedHeight uint64, hotstuffCurView uint64) {
    19  	_m.Called(node, nodeInfo, version, sealedHeight, hotstuffCurView)
    20  }
    21  
    22  // NodeReachable provides a mock function with given fields: node, nodeInfo, rtt
    23  func (_m *PingMetrics) NodeReachable(node *flow.Identity, nodeInfo string, rtt time.Duration) {
    24  	_m.Called(node, nodeInfo, rtt)
    25  }
    26  
    27  type mockConstructorTestingTNewPingMetrics interface {
    28  	mock.TestingT
    29  	Cleanup(func())
    30  }
    31  
    32  // NewPingMetrics creates a new instance of PingMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    33  func NewPingMetrics(t mockConstructorTestingTNewPingMetrics) *PingMetrics {
    34  	mock := &PingMetrics{}
    35  	mock.Mock.Test(t)
    36  
    37  	t.Cleanup(func() { mock.AssertExpectations(t) })
    38  
    39  	return mock
    40  }