testpaths

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Is(p string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL