testhelper

package module
Version: v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 6 Imported by: 1

README

testhelper

pkg.go.dev

testhelper finds a package function which is not a test function and receives a value of *testing.T as a parameter but it does not call (*testing.T).Helper.

// OK
func helper1(t *testing.T) {
	t.Helper()
}

// NG
func helper2(t *testing.T) {
	// without t.Helper
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "testhelper",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
	},
}

Analyzer finds a package function which is not a test function and receives a value of *testing.T as a parameter but it does not call (*testing.T).Helper.

Functions

This section is empty.

Types

This section is empty.

Source Files

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to