github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/session/mocks/SessionServiceClient.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  	grpc "google.golang.org/grpc"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	session "github.com/argoproj/argo-cd/pkg/apiclient/session"
    13  )
    14  
    15  // SessionServiceClient is an autogenerated mock type for the SessionServiceClient type
    16  type SessionServiceClient struct {
    17  	mock.Mock
    18  }
    19  
    20  // Create provides a mock function with given fields: ctx, in, opts
    21  func (_m *SessionServiceClient) Create(ctx context.Context, in *session.SessionCreateRequest, opts ...grpc.CallOption) (*session.SessionResponse, error) {
    22  	_va := make([]interface{}, len(opts))
    23  	for _i := range opts {
    24  		_va[_i] = opts[_i]
    25  	}
    26  	var _ca []interface{}
    27  	_ca = append(_ca, ctx, in)
    28  	_ca = append(_ca, _va...)
    29  	ret := _m.Called(_ca...)
    30  
    31  	var r0 *session.SessionResponse
    32  	if rf, ok := ret.Get(0).(func(context.Context, *session.SessionCreateRequest, ...grpc.CallOption) *session.SessionResponse); ok {
    33  		r0 = rf(ctx, in, opts...)
    34  	} else {
    35  		if ret.Get(0) != nil {
    36  			r0 = ret.Get(0).(*session.SessionResponse)
    37  		}
    38  	}
    39  
    40  	var r1 error
    41  	if rf, ok := ret.Get(1).(func(context.Context, *session.SessionCreateRequest, ...grpc.CallOption) error); ok {
    42  		r1 = rf(ctx, in, opts...)
    43  	} else {
    44  		r1 = ret.Error(1)
    45  	}
    46  
    47  	return r0, r1
    48  }
    49  
    50  // Delete provides a mock function with given fields: ctx, in, opts
    51  func (_m *SessionServiceClient) Delete(ctx context.Context, in *session.SessionDeleteRequest, opts ...grpc.CallOption) (*session.SessionResponse, error) {
    52  	_va := make([]interface{}, len(opts))
    53  	for _i := range opts {
    54  		_va[_i] = opts[_i]
    55  	}
    56  	var _ca []interface{}
    57  	_ca = append(_ca, ctx, in)
    58  	_ca = append(_ca, _va...)
    59  	ret := _m.Called(_ca...)
    60  
    61  	var r0 *session.SessionResponse
    62  	if rf, ok := ret.Get(0).(func(context.Context, *session.SessionDeleteRequest, ...grpc.CallOption) *session.SessionResponse); ok {
    63  		r0 = rf(ctx, in, opts...)
    64  	} else {
    65  		if ret.Get(0) != nil {
    66  			r0 = ret.Get(0).(*session.SessionResponse)
    67  		}
    68  	}
    69  
    70  	var r1 error
    71  	if rf, ok := ret.Get(1).(func(context.Context, *session.SessionDeleteRequest, ...grpc.CallOption) error); ok {
    72  		r1 = rf(ctx, in, opts...)
    73  	} else {
    74  		r1 = ret.Error(1)
    75  	}
    76  
    77  	return r0, r1
    78  }