github.com/ethereum-optimism/optimism@v1.7.2/op-node/p2p/mocks/ScoreMetrics.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 store "github.com/ethereum-optimism/optimism/op-node/p2p/store" 9 ) 10 11 // ScoreMetrics is an autogenerated mock type for the ScoreMetrics type 12 type ScoreMetrics struct { 13 mock.Mock 14 } 15 16 // SetPeerScores provides a mock function with given fields: _a0 17 func (_m *ScoreMetrics) SetPeerScores(_a0 []store.PeerScores) { 18 _m.Called(_a0) 19 } 20 21 type mockConstructorTestingTNewScoreMetrics interface { 22 mock.TestingT 23 Cleanup(func()) 24 } 25 26 // NewScoreMetrics creates a new instance of ScoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 27 func NewScoreMetrics(t mockConstructorTestingTNewScoreMetrics) *ScoreMetrics { 28 mock := &ScoreMetrics{} 29 mock.Mock.Test(t) 30 31 t.Cleanup(func() { mock.AssertExpectations(t) }) 32 33 return mock 34 }