github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/auth/mocks/Auth.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import context "context" 6 import grpc "google.golang.org/grpc" 7 import mock "github.com/stretchr/testify/mock" 8 9 // Auth is an autogenerated mock type for the Auth type 10 type Auth struct { 11 mock.Mock 12 } 13 14 // StreamInterceptor provides a mock function with given fields: srv, stream, info, handler 15 func (_m *Auth) StreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error { 16 ret := _m.Called(srv, stream, info, handler) 17 18 var r0 error 19 if rf, ok := ret.Get(0).(func(interface{}, grpc.ServerStream, *grpc.StreamServerInfo, grpc.StreamHandler) error); ok { 20 r0 = rf(srv, stream, info, handler) 21 } else { 22 r0 = ret.Error(0) 23 } 24 25 return r0 26 } 27 28 // UnaryInterceptor provides a mock function with given fields: ctx, req, info, handler 29 func (_m *Auth) UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { 30 ret := _m.Called(ctx, req, info, handler) 31 32 var r0 interface{} 33 if rf, ok := ret.Get(0).(func(context.Context, interface{}, *grpc.UnaryServerInfo, grpc.UnaryHandler) interface{}); ok { 34 r0 = rf(ctx, req, info, handler) 35 } else { 36 if ret.Get(0) != nil { 37 r0 = ret.Get(0).(interface{}) 38 } 39 } 40 41 var r1 error 42 if rf, ok := ret.Get(1).(func(context.Context, interface{}, *grpc.UnaryServerInfo, grpc.UnaryHandler) error); ok { 43 r1 = rf(ctx, req, info, handler) 44 } else { 45 r1 = ret.Error(1) 46 } 47 48 return r0, r1 49 }