Source file src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/doc.go
1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package tests defines an Analyzer that checks for common mistaken 6 // usages of tests and examples. 7 // 8 // # Analyzer tests 9 // 10 // tests: check for common mistaken usages of tests and examples 11 // 12 // The tests checker walks Test, Benchmark, Fuzzing and Example functions checking 13 // malformed names, wrong signatures and examples documenting non-existent 14 // identifiers. 15 // 16 // Please see the documentation for package testing in golang.org/pkg/testing 17 // for the conventions that are enforced for Tests, Benchmarks, and Examples. 18 package tests 19