gonextcloud/mocks/Apps.go

133 lines
2.4 KiB
Go
Raw Permalink Normal View History

2019-01-11 18:43:04 +00:00
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
"github.com/stretchr/testify/mock"
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
)
2019-01-11 18:43:04 +00:00
// 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) (gonextcloud.App, error) {
2019-01-11 18:43:04 +00:00
ret := _m.Called(name)
var r0 gonextcloud.App
if rf, ok := ret.Get(0).(func(string) gonextcloud.App); ok {
2019-01-11 18:43:04 +00:00
r0 = rf(name)
} else {
r0 = ret.Get(0).(gonextcloud.App)
2019-01-11 18:43:04 +00:00
}
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
}