gonextcloud/types/mocks/AppsConfig.go

152 lines
3.1 KiB
Go
Raw Normal View History

2019-01-11 18:43:04 +00:00
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// AppsConfig is an autogenerated mock type for the AppsConfig type
type AppsConfig struct {
mock.Mock
}
// DeleteValue provides a mock function with given fields: id, key, value
func (_m *AppsConfig) DeleteValue(id string, key string, value string) error {
ret := _m.Called(id, key, value)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
r0 = rf(id, key, value)
} else {
r0 = ret.Error(0)
}
return r0
}
// Details provides a mock function with given fields: appID
func (_m *AppsConfig) Details(appID string) (map[string]string, error) {
ret := _m.Called(appID)
var r0 map[string]string
if rf, ok := ret.Get(0).(func(string) map[string]string); ok {
r0 = rf(appID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]string)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(appID)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Get provides a mock function with given fields:
func (_m *AppsConfig) Get() (map[string]map[string]string, error) {
ret := _m.Called()
var r0 map[string]map[string]string
if rf, ok := ret.Get(0).(func() map[string]map[string]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]map[string]string)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Keys provides a mock function with given fields: id
func (_m *AppsConfig) Keys(id string) ([]string, error) {
ret := _m.Called(id)
var r0 []string
if rf, ok := ret.Get(0).(func(string) []string); ok {
r0 = rf(id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// List provides a mock function with given fields:
func (_m *AppsConfig) 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
}
// SetValue provides a mock function with given fields: id, key, value
func (_m *AppsConfig) SetValue(id string, key string, value string) error {
ret := _m.Called(id, key, value)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
r0 = rf(id, key, value)
} else {
r0 = ret.Error(0)
}
return r0
}
// Value provides a mock function with given fields: id, key
func (_m *AppsConfig) Value(id string, key string) (string, error) {
ret := _m.Called(id, key)
var r0 string
if rf, ok := ret.Get(0).(func(string, string) string); ok {
r0 = rf(id, key)
} else {
r0 = ret.Get(0).(string)
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string) error); ok {
r1 = rf(id, key)
} else {
r1 = ret.Error(1)
}
return r0, r1
}