mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-25 23:36:25 +00:00
130 lines
2.4 KiB
Go
130 lines
2.4 KiB
Go
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import mock "github.com/stretchr/testify/mock"
|
||
|
import types "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||
|
|
||
|
// Apps is an autogenerated mock type for the Apps type
|
||
|
type Apps struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// Disable provides a mock function with given fields: name
|
||
|
func (_m *Apps) Disable(name string) error {
|
||
|
ret := _m.Called(name)
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||
|
r0 = rf(name)
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|
||
|
|
||
|
// Enable provides a mock function with given fields: name
|
||
|
func (_m *Apps) Enable(name string) error {
|
||
|
ret := _m.Called(name)
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||
|
r0 = rf(name)
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|
||
|
|
||
|
// Infos provides a mock function with given fields: name
|
||
|
func (_m *Apps) Infos(name string) (types.App, error) {
|
||
|
ret := _m.Called(name)
|
||
|
|
||
|
var r0 types.App
|
||
|
if rf, ok := ret.Get(0).(func(string) types.App); ok {
|
||
|
r0 = rf(name)
|
||
|
} else {
|
||
|
r0 = ret.Get(0).(types.App)
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||
|
r1 = rf(name)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// List provides a mock function with given fields:
|
||
|
func (_m *Apps) List() ([]string, error) {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 []string
|
||
|
if rf, ok := ret.Get(0).(func() []string); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]string)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func() error); ok {
|
||
|
r1 = rf()
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// ListDisabled provides a mock function with given fields:
|
||
|
func (_m *Apps) ListDisabled() ([]string, error) {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 []string
|
||
|
if rf, ok := ret.Get(0).(func() []string); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]string)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func() error); ok {
|
||
|
r1 = rf()
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// ListEnabled provides a mock function with given fields:
|
||
|
func (_m *Apps) ListEnabled() ([]string, error) {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 []string
|
||
|
if rf, ok := ret.Get(0).(func() []string); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]string)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func() error); ok {
|
||
|
r1 = rf()
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|