Help us shape the future of Go! Take the 2026 Go Developer Survey

testforms

package
v1.95.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package testforms names the core forms that register a test or benchmark (elps#736): test, test-let, test-let*, benchmark and benchmark-simple. The test runner runs their bodies after the load. Package lint (the check test-outside-test-file) and package analysis (the check record-defmethod-not-toplevel) read the names here, so the two agree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(head string) string

Name returns the unqualified form name when head calls a test definition form, unqualified, lisp:-qualified or testing:-qualified, or "" otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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