Documentation
¶
Overview ¶
Package test 兼容性测试、跨包结构测试工具类
Index ¶
- Variables
- func Foo(i int) int
- func GetS() ([]byte, error)
- func Invokefoo(i int) int
- func NewUnexportedFake() *fake
- func Run(version string, logHandler func(log string), args ...string) error
- func UnexportedGlobalArrConst() []int
- func UnexportedGlobalArrVar() []int
- func UnexportedGlobalIntConst() int
- func UnexportedGlobalIntVar() int
- func UnexportedGlobalMapConst() map[string]int
- func UnexportedGlobalMapVar() map[string]int
- func UnexportedGlobalStrConst() string
- func UnexportedGlobalStrVar() string
- type Fake
- type S
- type S1
- type Struct
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalVar = 1
GlobalVar 用于测试全局变量 mock
Functions ¶
func UnexportedGlobalArrConst ¶ added in v1.0.5
func UnexportedGlobalArrConst() []int
UnexportedGlobalArrConst 获取未导出数组全局常量
func UnexportedGlobalArrVar ¶ added in v1.0.5
func UnexportedGlobalArrVar() []int
UnexportedGlobalArrVar 获取未导出数组全局变量
func UnexportedGlobalIntConst ¶ added in v1.0.5
func UnexportedGlobalIntConst() int
UnexportedGlobalIntConst 获取未导出Int全局常量
func UnexportedGlobalIntVar ¶ added in v1.0.5
func UnexportedGlobalIntVar() int
UnexportedGlobalIntVar 获取未导出Int全局变量
func UnexportedGlobalMapConst ¶ added in v1.0.5
UnexportedGlobalMapConst 获取未导出map全局常量
func UnexportedGlobalMapVar ¶ added in v1.0.5
UnexportedGlobalMapVar 获取未导出map全局变量
func UnexportedGlobalStrConst ¶ added in v1.0.5
func UnexportedGlobalStrConst() string
UnexportedGlobalStrConst 获取未导出Str全局常量
func UnexportedGlobalStrVar ¶ added in v1.0.5
func UnexportedGlobalStrVar() string
UnexportedGlobalStrVar 获取未导出Str全局变量
Types ¶
type Struct ¶ added in v1.0.5
type Struct struct {
Field1 string
}
func UnexportedGlobalStructPointerVar ¶ added in v1.0.5
func UnexportedGlobalStructPointerVar() *Struct
UnexportedGlobalStructPointerVar 获取未导出结构体引用全局变量
func UnexportedGlobalStructVar ¶ added in v1.0.5
func UnexportedGlobalStructVar() Struct
UnexportedGlobalStructVar 获取未导出结构体全局变量
Click to show internal directories.
Click to hide internal directories.