Documentation
¶
Overview ¶
Package testpaths says which files of a change are tests. An eval from a repository's history splits a fix into its tests, which the skill never sees and which judge its result, and the rest; the goal critic's allowed_paths entry @tests matches the same files. The rules are kept here, in one place, so mining, scoring and the critic agree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is reports whether a repository path is a test file: under a test directory (test/, tests/, __tests__/, spec/, testdata/, ...), or named as the common languages name their tests (*_test.go, test_*.py, *.test.ts, *.spec.js, *_spec.rb, *Test.java, ...), or a test helper such as conftest.py. Tests that live inside a source file (Rust's #[cfg(test)] modules, Python doctests) cannot be told apart: such a file is code.
Types ¶
This section is empty.