github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/session/mocks/SessionServiceServer.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 context "context" 7 8 mock "github.com/stretchr/testify/mock" 9 10 session "github.com/argoproj/argo-cd/pkg/apiclient/session" 11 ) 12 13 // SessionServiceServer is an autogenerated mock type for the SessionServiceServer type 14 type SessionServiceServer struct { 15 mock.Mock 16 } 17 18 // Create provides a mock function with given fields: _a0, _a1 19 func (_m *SessionServiceServer) Create(_a0 context.Context, _a1 *session.SessionCreateRequest) (*session.SessionResponse, error) { 20 ret := _m.Called(_a0, _a1) 21 22 var r0 *session.SessionResponse 23 if rf, ok := ret.Get(0).(func(context.Context, *session.SessionCreateRequest) *session.SessionResponse); ok { 24 r0 = rf(_a0, _a1) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(*session.SessionResponse) 28 } 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func(context.Context, *session.SessionCreateRequest) error); ok { 33 r1 = rf(_a0, _a1) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 } 40 41 // Delete provides a mock function with given fields: _a0, _a1 42 func (_m *SessionServiceServer) Delete(_a0 context.Context, _a1 *session.SessionDeleteRequest) (*session.SessionResponse, error) { 43 ret := _m.Called(_a0, _a1) 44 45 var r0 *session.SessionResponse 46 if rf, ok := ret.Get(0).(func(context.Context, *session.SessionDeleteRequest) *session.SessionResponse); ok { 47 r0 = rf(_a0, _a1) 48 } else { 49 if ret.Get(0) != nil { 50 r0 = ret.Get(0).(*session.SessionResponse) 51 } 52 } 53 54 var r1 error 55 if rf, ok := ret.Get(1).(func(context.Context, *session.SessionDeleteRequest) error); ok { 56 r1 = rf(_a0, _a1) 57 } else { 58 r1 = ret.Error(1) 59 } 60 61 return r0, r1 62 }