analyzertest

package
v0.91.10 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package analyzertest provides regression-test helpers for custom linters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTogether

func RunTogether(t *testing.T, testdata string, analyzers []*analysis.Analyzer, patterns ...string) []*analysistest.Result

RunTogether checks independent diagnostic-only analyzers against one fixture. Diagnostic messages are prefixed with the originating analyzer's name so want comments can distinguish overlapping reports. The analysis test driver runs their dependencies; each analyzer receives only its own dependency results. Analyzers that produce results or facts, or depend on another selected analyzer, are unsupported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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