github.com/kaituanwang/hyperledger@v2.0.1+incompatible/discovery/cmd/mocks/command_registrar.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import common "github.com/hyperledger/fabric/cmd/common" 6 7 import kingpin "gopkg.in/alecthomas/kingpin.v2" 8 import mock "github.com/stretchr/testify/mock" 9 10 // CommandRegistrar is an autogenerated mock type for the CommandRegistrar type 11 type CommandRegistrar struct { 12 mock.Mock 13 } 14 15 // Command provides a mock function with given fields: name, help, onCommand 16 func (_m *CommandRegistrar) Command(name string, help string, onCommand common.CLICommand) *kingpin.CmdClause { 17 ret := _m.Called(name, help, onCommand) 18 19 var r0 *kingpin.CmdClause 20 if rf, ok := ret.Get(0).(func(string, string, common.CLICommand) *kingpin.CmdClause); ok { 21 r0 = rf(name, help, onCommand) 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(*kingpin.CmdClause) 25 } 26 } 27 28 return r0 29 }