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 CheckFSWithProgram(t *testing.T, programName string, codeFS, ruleFS fi.FileSystem, ...)
- 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 CheckSyntaxFlowWithFS(t *testing.T, fs fi.FileSystem, sf string, wants map[string][]string, ...)
- func CheckSyntaxFlowWithSFOption(t *testing.T, code string, sf string, 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, typ ssa.Type, opt ...ssaapi.Option)
- func CheckTypeKind(t *testing.T, code string, kind ssa.TypeKind, opt ...ssaapi.Option)
- func CheckWithFS(fs fi.FileSystem, t *testing.T, handler func(ssaapi.Programs) error, ...)
- func CheckWithName(name string, t *testing.T, code string, ...)
- func CompareResult(t *testing.T, contain bool, results *ssaapi.SyntaxFlowResult, ...)
- func MockSSA(t *testing.T, src string)
- func ProfileJavaCheck(t *testing.T, code string, ...)
- func SetLanguage(lang consts.Language, build ssa.Builder)
- type ExampleInterface
- type ExampleStruct
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBottomUser_Contain ¶
func CheckError ¶
func CheckFSWithProgram ¶
func CheckFreeValue ¶
func CheckFunctionReturnType ¶
func CheckParameter ¶
func CheckParameterMember ¶
func CheckPrintf ¶
func CheckPrintlnValue ¶
--------------------- for test ---------------------
func CheckSyntaxFlow ¶
func CheckSyntaxFlowContain ¶
func CheckSyntaxFlowEx ¶
func CheckSyntaxFlowWithFS ¶
func CheckTestCase ¶
func CheckTopDef_Contain ¶
func CheckTopDef_Equal ¶
func CheckTypeKind ¶
func CheckWithFS ¶
func CheckWithName ¶
func CompareResult ¶
func ProfileJavaCheck ¶
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.