mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-22 15:16:24 +00:00
39 lines
757 B
Go
39 lines
757 B
Go
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import mock "github.com/stretchr/testify/mock"
|
||
|
|
||
|
// Auth is an autogenerated mock type for the Auth type
|
||
|
type Auth struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// Login provides a mock function with given fields: username, password
|
||
|
func (_m *Auth) Login(username string, password string) error {
|
||
|
ret := _m.Called(username, password)
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||
|
r0 = rf(username, password)
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|
||
|
|
||
|
// Logout provides a mock function with given fields:
|
||
|
func (_m *Auth) Logout() error {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func() error); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|