From 25aef41611a12273111cb63589debb88058d408f Mon Sep 17 00:00:00 2001 From: Jean-Christophe Hugly Date: Thu, 10 Aug 2023 17:13:53 +0200 Subject: [PATCH] hidden_paths: fix mock for path. New method Interfaces() is missing. --- pkg/snet/mock_snet/mock.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/snet/mock_snet/mock.go b/pkg/snet/mock_snet/mock.go index 181ac9a929..c72f2b7089 100644 --- a/pkg/snet/mock_snet/mock.go +++ b/pkg/snet/mock_snet/mock.go @@ -280,6 +280,20 @@ func (mr *MockPathMockRecorder) Metadata() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockPath)(nil).Metadata)) } +// Metadata mocks base method. +func (m *MockPath) Interaces() []snet.Interface { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Interfaces") + ret0, _ := ret[0].([]snet.Interfaces) + return ret0 +} + +// Metadata indicates an expected call of Interfaces. +func (mr *MockPathMockRecorder) Interfaces() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Interfaces", reflect.TypeOf((*MockPath)(nil).Interfaces)) +} + // Source mocks base method. func (m *MockPath) Source() addr.IA { m.ctrl.T.Helper()