Documentation ¶
Overview ¶
Package goparse contains logic for parsing Go files. Specifically it parses source and test files into domain models for generating tests.
This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFileExist ¶
Types ¶
type Options ¶
type Options struct { PrintInputs bool Subtests bool Parallel bool Named bool Template string TemplateDir string Mocks map[string]map[string]int Builders map[string][]string MiddleBuilders []string GlobalInit []string MiddleCodeInit []string TestCaseNum int TemplateParams map[string]interface{} TemplateData [][]byte Uid string MockStatements map[string][]string TestMode string FilePath string UseMockType int Ctx context.Context // Context of the smart unit // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.