Documentation ¶
Index ¶
- func Main()
- func RegisterMain(test IMyMainTester)
- type BootArgs
- type DefaultCaseMain
- type FlagByteValue
- type IMyMainArgser
- type IMyMainTester
- func NewDefaultHelloMain() IMyMainTester
- func NewMainTest(name, describe string, execFunc func()) IMyMainTester
- func NewMainTestDefine(name, describe string, execFunc func(), flagDefine func(flag *flag.FlagSet)) IMyMainTester
- func NewMainTestInterface(name, describe string, testCase MainTestCaser) IMyMainTester
- func TryGetTestCase(args *MainArgs) IMyMainTester
- type IRegisterTestCase
- type MainArgs
- type MainTestCaser
- type RegexInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMain ¶
func RegisterMain(test IMyMainTester)
Types ¶
type BootArgs ¶
type BootArgs struct {
// contains filtered or unexported fields
}
----------start----------BootArgs impl IMyMainArgser----------start----------
func (*BootArgs) SetParseFlagFunc ¶
type DefaultCaseMain ¶
type DefaultCaseMain struct { BootArgs // contains filtered or unexported fields }
func (*DefaultCaseMain) Describe ¶
func (receiver *DefaultCaseMain) Describe() string
func (*DefaultCaseMain) MainTest ¶
func (receiver *DefaultCaseMain) MainTest()
func (*DefaultCaseMain) Name ¶
func (receiver *DefaultCaseMain) Name() string
type FlagByteValue ¶
type FlagByteValue byte
----------start----------自定义参数类型----------start----------
func NewFlagByteValue ¶
func NewFlagByteValue(defvalue byte, pointvalue *byte) *FlagByteValue
func (*FlagByteValue) Set ¶
func (bv *FlagByteValue) Set(val string) error
func (*FlagByteValue) String ¶
func (bv *FlagByteValue) String() string
type IMyMainArgser ¶
type IMyMainArgser interface { SetParseFlagFunc(func(flag *flag.FlagSet)) // contains filtered or unexported methods }
----------start----------Test Case Interface----------start----------
type IMyMainTester ¶
type IMyMainTester interface { IMyMainArgser IRegisterTestCase }
func NewDefaultHelloMain ¶
func NewDefaultHelloMain() IMyMainTester
func NewMainTest ¶
func NewMainTest(name, describe string, execFunc func()) IMyMainTester
func NewMainTestDefine ¶
func NewMainTestDefine(name, describe string, execFunc func(), flagDefine func(flag *flag.FlagSet)) IMyMainTester
func NewMainTestInterface ¶
func NewMainTestInterface(name, describe string, testCase MainTestCaser) IMyMainTester
func TryGetTestCase ¶
func TryGetTestCase(args *MainArgs) IMyMainTester
type IRegisterTestCase ¶
type MainArgs ¶
type MainArgs struct {
// contains filtered or unexported fields
}
----------start----------Main Args----------start----------
type MainTestCaser ¶
Click to show internal directories.
Click to hide internal directories.