gitee.com/zhaochuninhefei/fabric-ca-gm@v0.0.2/cmd/fabric-ca-client/command/mocks/Command.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 package mocks 3 4 import lib "gitee.com/zhaochuninhefei/fabric-ca-gm/lib" 5 import mock "github.com/stretchr/testify/mock" 6 import viper "github.com/spf13/viper" 7 8 // Command is an autogenerated mock type for the Command type 9 type Command struct { 10 mock.Mock 11 } 12 13 // ConfigInit provides a mock function with given fields: 14 func (_m *Command) ConfigInit() error { 15 ret := _m.Called() 16 17 var r0 error 18 if rf, ok := ret.Get(0).(func() error); ok { 19 r0 = rf() 20 } else { 21 r0 = ret.Error(0) 22 } 23 24 return r0 25 } 26 27 // GetCfgFileName provides a mock function with given fields: 28 func (_m *Command) GetCfgFileName() string { 29 ret := _m.Called() 30 31 var r0 string 32 if rf, ok := ret.Get(0).(func() string); ok { 33 r0 = rf() 34 } else { 35 r0 = ret.Get(0).(string) 36 } 37 38 return r0 39 } 40 41 // GetClientCfg provides a mock function with given fields: 42 func (_m *Command) GetClientCfg() *lib.ClientConfig { 43 ret := _m.Called() 44 45 var r0 *lib.ClientConfig 46 if rf, ok := ret.Get(0).(func() *lib.ClientConfig); ok { 47 r0 = rf() 48 } else { 49 if ret.Get(0) != nil { 50 r0 = ret.Get(0).(*lib.ClientConfig) 51 } 52 } 53 54 return r0 55 } 56 57 // GetHomeDirectory provides a mock function with given fields: 58 func (_m *Command) GetHomeDirectory() string { 59 ret := _m.Called() 60 61 var r0 string 62 if rf, ok := ret.Get(0).(func() string); ok { 63 r0 = rf() 64 } else { 65 r0 = ret.Get(0).(string) 66 } 67 68 return r0 69 } 70 71 // GetViper provides a mock function with given fields: 72 func (_m *Command) GetViper() *viper.Viper { 73 ret := _m.Called() 74 75 var r0 *viper.Viper 76 if rf, ok := ret.Get(0).(func() *viper.Viper); ok { 77 r0 = rf() 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(*viper.Viper) 81 } 82 } 83 84 return r0 85 } 86 87 // LoadMyIdentity provides a mock function with given fields: 88 func (_m *Command) LoadMyIdentity() (*lib.Identity, error) { 89 ret := _m.Called() 90 91 var r0 *lib.Identity 92 if rf, ok := ret.Get(0).(func() *lib.Identity); ok { 93 r0 = rf() 94 } else { 95 if ret.Get(0) != nil { 96 r0 = ret.Get(0).(*lib.Identity) 97 } 98 } 99 100 var r1 error 101 if rf, ok := ret.Get(1).(func() error); ok { 102 r1 = rf() 103 } else { 104 r1 = ret.Error(1) 105 } 106 107 return r0, r1 108 } 109 110 // SetDefaultLogLevel provides a mock function with given fields: _a0 111 func (_m *Command) SetDefaultLogLevel(_a0 string) { 112 _m.Called(_a0) 113 }