2022-11-03 10:31:10 -04:00
|
|
|
// Copyright © 2022 Ory Corp
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-09-03 13:38:56 +02:00
|
|
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
|
|
|
|
package mocks
|
|
|
|
|
2021-09-14 08:07:06 -04:00
|
|
|
import (
|
|
|
|
hydra "github.com/ory/hydra-maester/hydra"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
)
|
2019-09-03 13:38:56 +02:00
|
|
|
|
2021-09-14 08:07:06 -04:00
|
|
|
// Client is an autogenerated mock type for the Client type
|
|
|
|
type Client struct {
|
2019-09-03 13:38:56 +02:00
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteOAuth2Client provides a mock function with given fields: id
|
2021-09-14 08:07:06 -04:00
|
|
|
func (_m *Client) DeleteOAuth2Client(id string) error {
|
2019-09-03 13:38:56 +02:00
|
|
|
ret := _m.Called(id)
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func(string) error); ok {
|
|
|
|
r0 = rf(id)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetOAuth2Client provides a mock function with given fields: id
|
2021-09-14 08:07:06 -04:00
|
|
|
func (_m *Client) GetOAuth2Client(id string) (*hydra.OAuth2ClientJSON, bool, error) {
|
2019-09-03 13:38:56 +02:00
|
|
|
ret := _m.Called(id)
|
|
|
|
|
|
|
|
var r0 *hydra.OAuth2ClientJSON
|
|
|
|
if rf, ok := ret.Get(0).(func(string) *hydra.OAuth2ClientJSON); ok {
|
|
|
|
r0 = rf(id)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*hydra.OAuth2ClientJSON)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 bool
|
|
|
|
if rf, ok := ret.Get(1).(func(string) bool); ok {
|
|
|
|
r1 = rf(id)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Get(1).(bool)
|
|
|
|
}
|
|
|
|
|
|
|
|
var r2 error
|
|
|
|
if rf, ok := ret.Get(2).(func(string) error); ok {
|
|
|
|
r2 = rf(id)
|
|
|
|
} else {
|
|
|
|
r2 = ret.Error(2)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1, r2
|
|
|
|
}
|
|
|
|
|
2019-09-19 09:29:18 +02:00
|
|
|
// ListOAuth2Client provides a mock function with given fields:
|
2021-09-14 08:07:06 -04:00
|
|
|
func (_m *Client) ListOAuth2Client() ([]*hydra.OAuth2ClientJSON, error) {
|
2019-09-19 09:29:18 +02:00
|
|
|
ret := _m.Called()
|
|
|
|
|
|
|
|
var r0 []*hydra.OAuth2ClientJSON
|
|
|
|
if rf, ok := ret.Get(0).(func() []*hydra.OAuth2ClientJSON); ok {
|
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).([]*hydra.OAuth2ClientJSON)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func() error); ok {
|
|
|
|
r1 = rf()
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
2019-09-03 13:38:56 +02:00
|
|
|
// PostOAuth2Client provides a mock function with given fields: o
|
2021-09-14 08:07:06 -04:00
|
|
|
func (_m *Client) PostOAuth2Client(o *hydra.OAuth2ClientJSON) (*hydra.OAuth2ClientJSON, error) {
|
2019-09-03 13:38:56 +02:00
|
|
|
ret := _m.Called(o)
|
|
|
|
|
|
|
|
var r0 *hydra.OAuth2ClientJSON
|
|
|
|
if rf, ok := ret.Get(0).(func(*hydra.OAuth2ClientJSON) *hydra.OAuth2ClientJSON); ok {
|
|
|
|
r0 = rf(o)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*hydra.OAuth2ClientJSON)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(*hydra.OAuth2ClientJSON) error); ok {
|
|
|
|
r1 = rf(o)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// PutOAuth2Client provides a mock function with given fields: o
|
2021-09-14 08:07:06 -04:00
|
|
|
func (_m *Client) PutOAuth2Client(o *hydra.OAuth2ClientJSON) (*hydra.OAuth2ClientJSON, error) {
|
2019-09-03 13:38:56 +02:00
|
|
|
ret := _m.Called(o)
|
|
|
|
|
|
|
|
var r0 *hydra.OAuth2ClientJSON
|
|
|
|
if rf, ok := ret.Get(0).(func(*hydra.OAuth2ClientJSON) *hydra.OAuth2ClientJSON); ok {
|
|
|
|
r0 = rf(o)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*hydra.OAuth2ClientJSON)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(*hydra.OAuth2ClientJSON) error); ok {
|
|
|
|
r1 = rf(o)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|