Documentation ¶
Index ¶
- func GetFunctions() map[string]string
- type CodeLine
- type FuncContext
- type FuncParser
- type Function
- type TestFunctions
- func (f *TestFunctions) Assert(v1 string, op string, v2 string) bool
- func (f *TestFunctions) Foreach(v1 string, op string, v2 string) bool
- func (f *TestFunctions) Len(t string) int
- func (f *TestFunctions) Match(str string, reg string) string
- func (f *TestFunctions) Print(o interface{}) bool
- func (f *TestFunctions) Replace(str string, old string, new string) string
- func (f *TestFunctions) Set(key string, value string) bool
- func (f *TestFunctions) Sleep(t string) bool
- func (f *TestFunctions) ToLower(str string) string
- func (f *TestFunctions) ToUpper(str string) string
- func (f *TestFunctions) While(v1 string, op string, v2 string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctions ¶
Types ¶
type FuncContext ¶
type FuncContext struct { }
func NewFuncContext ¶
func NewFuncContext() *FuncContext
type FuncParser ¶
type FuncParser struct { FunCtx *FuncContext Codes []*CodeLine }
func NewFuncParser ¶
func NewFuncParser(funCtx *FuncContext, codes []*CodeLine) *FuncParser
func (*FuncParser) Parse ¶
func (fp *FuncParser) Parse() ([]*Function, error)
type Function ¶
type Function struct { Name string Args []string ArgsValue []string Skip bool Return string ReturnName string Code *CodeLine }
func ParseFunctions ¶
type TestFunctions ¶
type TestFunctions struct { }
func (*TestFunctions) Assert ¶
func (f *TestFunctions) Assert(v1 string, op string, v2 string) bool
TODO:各种类型比较
func (*TestFunctions) Foreach ¶
func (f *TestFunctions) Foreach(v1 string, op string, v2 string) bool
func (*TestFunctions) Len ¶
func (f *TestFunctions) Len(t string) int
func (*TestFunctions) Print ¶
func (f *TestFunctions) Print(o interface{}) bool
func (*TestFunctions) Replace ¶
func (f *TestFunctions) Replace(str string, old string, new string) string
func (*TestFunctions) Sleep ¶
func (f *TestFunctions) Sleep(t string) bool
func (*TestFunctions) ToLower ¶
func (f *TestFunctions) ToLower(str string) string
func (*TestFunctions) ToUpper ¶
func (f *TestFunctions) ToUpper(str string) string
Click to show internal directories.
Click to hide internal directories.