Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchSymbolToTest ¶
MatchSymbolToTest returns true if a test name matches a symbol. symbolName can be either "FunctionName" or "ReceiverType.MethodName" Also handles constructor matching: TestVue matches NewVue because NewVue returns Vue
func ParseTestName ¶
ParseTestName extracts the symbol it tests from a test or benchmark function name. Supports patterns like: - TestSymbol / BenchmarkSymbol - TestSymbol_context / BenchmarkSymbol_context - TestReceiver_Method / BenchmarkReceiver_Method - TestReceiver_Method_context / BenchmarkReceiver_Method_context
Types ¶
Click to show internal directories.
Click to hide internal directories.