1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-04 22:02:15 +03:00
Files
crow/pipeline/frontend/metadata/mocks/mock_ServerForge.go
2025-03-10 13:58:57 +01:00

123 lines
2.9 KiB
Go

// Code generated by mockery v2.53.0. DO NOT EDIT.
package metadata
import mock "github.com/stretchr/testify/mock"
// MockServerForge is an autogenerated mock type for the ServerForge type
type MockServerForge struct {
mock.Mock
}
type MockServerForge_Expecter struct {
mock *mock.Mock
}
func (_m *MockServerForge) EXPECT() *MockServerForge_Expecter {
return &MockServerForge_Expecter{mock: &_m.Mock}
}
// Name provides a mock function with no fields
func (_m *MockServerForge) Name() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Name")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// MockServerForge_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
type MockServerForge_Name_Call struct {
*mock.Call
}
// Name is a helper method to define mock.On call
func (_e *MockServerForge_Expecter) Name() *MockServerForge_Name_Call {
return &MockServerForge_Name_Call{Call: _e.mock.On("Name")}
}
func (_c *MockServerForge_Name_Call) Run(run func()) *MockServerForge_Name_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *MockServerForge_Name_Call) Return(_a0 string) *MockServerForge_Name_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockServerForge_Name_Call) RunAndReturn(run func() string) *MockServerForge_Name_Call {
_c.Call.Return(run)
return _c
}
// URL provides a mock function with no fields
func (_m *MockServerForge) URL() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for URL")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// MockServerForge_URL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URL'
type MockServerForge_URL_Call struct {
*mock.Call
}
// URL is a helper method to define mock.On call
func (_e *MockServerForge_Expecter) URL() *MockServerForge_URL_Call {
return &MockServerForge_URL_Call{Call: _e.mock.On("URL")}
}
func (_c *MockServerForge_URL_Call) Run(run func()) *MockServerForge_URL_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *MockServerForge_URL_Call) Return(_a0 string) *MockServerForge_URL_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockServerForge_URL_Call) RunAndReturn(run func() string) *MockServerForge_URL_Call {
_c.Call.Return(run)
return _c
}
// NewMockServerForge creates a new instance of MockServerForge. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockServerForge(t interface {
mock.TestingT
Cleanup(func())
}) *MockServerForge {
mock := &MockServerForge{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}