github.com/koko1123/flow-go-1@v0.29.6/module/mock/network_security_metrics.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // NetworkSecurityMetrics is an autogenerated mock type for the NetworkSecurityMetrics type 8 type NetworkSecurityMetrics struct { 9 mock.Mock 10 } 11 12 // OnRateLimitedUnicastMessage provides a mock function with given fields: role, msgType, topic, reason 13 func (_m *NetworkSecurityMetrics) OnRateLimitedUnicastMessage(role string, msgType string, topic string, reason string) { 14 _m.Called(role, msgType, topic, reason) 15 } 16 17 // OnUnauthorizedMessage provides a mock function with given fields: role, msgType, topic, offense 18 func (_m *NetworkSecurityMetrics) OnUnauthorizedMessage(role string, msgType string, topic string, offense string) { 19 _m.Called(role, msgType, topic, offense) 20 } 21 22 type mockConstructorTestingTNewNetworkSecurityMetrics interface { 23 mock.TestingT 24 Cleanup(func()) 25 } 26 27 // NewNetworkSecurityMetrics creates a new instance of NetworkSecurityMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 28 func NewNetworkSecurityMetrics(t mockConstructorTestingTNewNetworkSecurityMetrics) *NetworkSecurityMetrics { 29 mock := &NetworkSecurityMetrics{} 30 mock.Mock.Test(t) 31 32 t.Cleanup(func() { mock.AssertExpectations(t) }) 33 34 return mock 35 }