...

Package tests

import "golang.org/x/tools/go/analysis/passes/tests"
Overview
Index

Overview ▾

Package tests defines an Analyzer that checks for common mistaken usages of tests and examples.

Index ▾

Package files

tests.go

Constants

const Doc = `check for common mistaken usages of tests and examples

The tests checker walks Test, Benchmark and Example functions checking
malformed names, wrong signatures and examples documenting non-existent
identifiers.

Please see the documentation for package testing in golang.org/pkg/testing
for the conventions that are enforced for Tests, Benchmarks, and Examples.`

Variables

var Analyzer = &analysis.Analyzer{
    Name: "tests",
    Doc:  Doc,
    Run:  run,
}