toolshonnef.co/go/tools/analysis/lint/testutil Index | Files

package testutil

import "honnef.co/go/tools/analysis/lint/testutil"

Index

Functions

func Check

func Check(t *testing.T, gopath string, files []string, diagnostics []runner.Diagnostic, facts []runner.TestFact)

func CheckSuggestedFixes

func CheckSuggestedFixes(t *testing.T, diagnostics []runner.Diagnostic)

func Run

func Run(t *testing.T, a *lint.Analyzer)

Types

type Test

type Test struct {
	Dir     string
	Version string
}

Source Files

check.go util.go

Version
v0.6.1 (latest)
Published
Mar 5, 2025
Platform
linux/amd64
Imports
24 packages
Last checked
50 seconds ago

Tools for package owners.