Documentation
¶
Overview ¶
Package discover finds parseable source files in a repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTestFile ¶ added in v1.2.0
IsTestFile reports whether relPath appears to be a test file, based on path conventions that are consistent across major languages:
- a directory component named test, tests, spec, specs, or __tests__
- a filename whose base starts with test_, ends with _test or _spec, or contains .test or .spec (handles .test.js, .spec.ts, etc.)
Types ¶
Click to show internal directories.
Click to hide internal directories.