-
Notifications
You must be signed in to change notification settings - Fork 50
/
oidc_client_service.go
57 lines (45 loc) · 1.7 KB
/
oidc_client_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
runtime "github.com/go-openapi/runtime"
oidc "github.com/mittwald/goharbor-client/v5/apiv2/internal/api/client/oidc"
mock "github.com/stretchr/testify/mock"
)
// MockOidcClientService is an autogenerated mock type for the ClientService type
type MockOidcClientService struct {
mock.Mock
}
// PingOIDC provides a mock function with given fields: params, authInfo
func (_m *MockOidcClientService) PingOIDC(params *oidc.PingOIDCParams, authInfo runtime.ClientAuthInfoWriter) (*oidc.PingOIDCOK, error) {
ret := _m.Called(params, authInfo)
var r0 *oidc.PingOIDCOK
if rf, ok := ret.Get(0).(func(*oidc.PingOIDCParams, runtime.ClientAuthInfoWriter) *oidc.PingOIDCOK); ok {
r0 = rf(params, authInfo)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*oidc.PingOIDCOK)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*oidc.PingOIDCParams, runtime.ClientAuthInfoWriter) error); ok {
r1 = rf(params, authInfo)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SetTransport provides a mock function with given fields: transport
func (_m *MockOidcClientService) SetTransport(transport runtime.ClientTransport) {
_m.Called(transport)
}
type mockConstructorTestingTNewMockOidcClientService interface {
mock.TestingT
Cleanup(func())
}
// NewMockOidcClientService creates a new instance of MockOidcClientService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockOidcClientService(t mockConstructorTestingTNewMockOidcClientService) *MockOidcClientService {
mock := &MockOidcClientService{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}