testpath

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 3 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 testpath holds the one rule that says a path is a test file.

It is a package of its own because two sides have to agree on it: a loader that leaves tests out of the graph when `include_tests` is false, and the tools that drop them from an answer under `exclude_tests`. With two rules a file could be in the graph as production code and be filtered as a test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(filePath string) bool

Is says whether a repository-relative path is a test file by the conventions of the languages the graph indexes: a name or a directory. A Rust test module inside a source file, which carries no such mark, is not seen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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