Documentation
¶
Index ¶
- func Check(t *testing.T, code string, handler func(prog *ssaapi.Program) error, ...)
- func CheckBottomUserCall_Contain(variable string, want []string, forceCheckLength ...bool) checkFunction
- func CheckBottomUser_Contain(variable string, want []string, forceCheckLength ...bool) checkFunction
- func CheckError(t *testing.T, tc TestCase)
- func CheckFreeValue(t *testing.T, tc TestCase)
- func CheckFunctionReturnType(t *testing.T, code string, kind ssa.TypeKind)
- func CheckMask(t *testing.T, tc TestCase)
- func CheckNoError(t *testing.T, code string, opt ...ssaapi.Option)
- func CheckParameter(t *testing.T, tc TestCase)
- func CheckParameterMember(t *testing.T, tc TestCase)
- func CheckParse(t *testing.T, code string, opt ...ssaapi.Option)
- func CheckPrintf(t *testing.T, tc TestCase)
- func CheckPrintlnValue(code string, want []string, t *testing.T)
- func CheckSyntaxFlow(t *testing.T, code string, sf string, wants map[string][]string, ...)
- func CheckSyntaxFlowContain(t *testing.T, code string, sf string, wants map[string][]string, ...)
- func CheckSyntaxFlowEx(t *testing.T, code string, sf string, contain bool, wants map[string][]string, ...)
- func CheckTestCase(t *testing.T, tc TestCase)
- func CheckTopDef_Contain(variable string, want []string, forceCheckLength ...bool) checkFunction
- func CheckTopDef_Equal(variable string, want []string, forceCheckLength ...bool) checkFunction
- func CheckType(t *testing.T, code string, kind ssa.TypeKind, opt ...ssaapi.Option)
- func MockSSA(t *testing.T, src string)
- func SetLanguage(lang ssaapi.Language, build ssaapi.Builder)
- type ExampleInterface
- type ExampleStruct
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBottomUser_Contain ¶
func CheckError ¶
func CheckFreeValue ¶
func CheckFunctionReturnType ¶
func CheckParameter ¶
func CheckParameterMember ¶
func CheckPrintf ¶
func CheckPrintlnValue ¶
--------------------- for test ---------------------
func CheckSyntaxFlow ¶
func CheckSyntaxFlowContain ¶
func CheckSyntaxFlowEx ¶
func CheckTestCase ¶
func CheckTopDef_Contain ¶
func CheckTopDef_Equal ¶
Types ¶
type ExampleInterface ¶
type ExampleInterface interface {
ExampleMethod()
}
===================== struct =====================
func GetExampleInterface ¶
func GetExampleInterface() ExampleInterface
type ExampleStruct ¶
type ExampleStruct struct {
ExampleFieldFunction func()
}
func GetExampleStruct ¶
func GetExampleStruct() ExampleStruct
func (ExampleStruct) ExampleMethod ¶
func (a ExampleStruct) ExampleMethod()
Click to show internal directories.
Click to hide internal directories.