testpackage

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 Imported by: 11

Documentation

Index

Constants

View Source
const (
	SkipRegexpFlagName    = "skip-regexp"
	SkipRegexpFlagUsage   = `regexp pattern to skip file by name. To not skip files use -skip-regexp="^$"`
	SkipRegexpFlagDefault = `(export|internal)_test\.go`
)
View Source
const (
	AllowPackagesFlagName    = "allow-packages"
	AllowPackagesFlagUsage   = `comma separated list of packages that don't end with _test that tests are allowed to be in`
	AllowPackagesFlagDefault = `main`
)

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

NewAnalyzer returns Analyzer that makes you use a separate _test package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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