mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 10:08:31 -05:00
Maintaining the positioning of the files from v2 to reduce cognitive
load.
Indentation of yaml files now matches `.editorconfig`.
All mock files regenerated.
Added empty `{}` following convention from `mockery init` etc.
Removed directory specification where it would already match.
88 lines
2.1 KiB
Go
88 lines
2.1 KiB
Go
// Code generated by mockery; DO NOT EDIT.
|
|
// github.com/vektra/mockery
|
|
// template: testify
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// NewLockParser creates a new instance of LockParser. 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 NewLockParser(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *LockParser {
|
|
mock := &LockParser{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|
|
|
|
// LockParser is an autogenerated mock type for the LockParser type
|
|
type LockParser struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type LockParser_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *LockParser) EXPECT() *LockParser_Expecter {
|
|
return &LockParser_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// ParseLock provides a mock function for the type LockParser
|
|
func (_mock *LockParser) ParseLock(id string) string {
|
|
ret := _mock.Called(id)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for ParseLock")
|
|
}
|
|
|
|
var r0 string
|
|
if returnFunc, ok := ret.Get(0).(func(string) string); ok {
|
|
r0 = returnFunc(id)
|
|
} else {
|
|
r0 = ret.Get(0).(string)
|
|
}
|
|
return r0
|
|
}
|
|
|
|
// LockParser_ParseLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseLock'
|
|
type LockParser_ParseLock_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// ParseLock is a helper method to define mock.On call
|
|
// - id string
|
|
func (_e *LockParser_Expecter) ParseLock(id interface{}) *LockParser_ParseLock_Call {
|
|
return &LockParser_ParseLock_Call{Call: _e.mock.On("ParseLock", id)}
|
|
}
|
|
|
|
func (_c *LockParser_ParseLock_Call) Run(run func(id string)) *LockParser_ParseLock_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
var arg0 string
|
|
if args[0] != nil {
|
|
arg0 = args[0].(string)
|
|
}
|
|
run(
|
|
arg0,
|
|
)
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *LockParser_ParseLock_Call) Return(s string) *LockParser_ParseLock_Call {
|
|
_c.Call.Return(s)
|
|
return _c
|
|
}
|
|
|
|
func (_c *LockParser_ParseLock_Call) RunAndReturn(run func(id string) string) *LockParser_ParseLock_Call {
|
|
_c.Call.Return(run)
|
|
return _c
|
|
}
|