289 matches across 1 files for func main path:src/testing/testing.go path:src/testing/testing.go
snippet_mode: auto · sorted by relevance
src/testing/testing.go GO 289 matches · showing 5 view file →
5// Package testing provides support for automated testing of Go packages.
6// It is intended to be used in concert with the "go test" command, which automates
7// execution of any function of the form
8//
9// func TestXxx(*testing.T)
· · ·
9// func TestXxx(*testing.T)
10//
11// where Xxx does not start with a lowercase letter. The function name
· · ·
11// where Xxx does not start with a lowercase letter. The function name
12// serves to identify the test routine.
13//
· · ·
14// Within these functions, use [T.Error], [T.Fail] or related methods to signal failure.
15//
16// To write a new test suite, create a file that
· · ·
17// contains the TestXxx functions as described here,
18// and give that file a name ending in "_test.go".
19// The file will be excluded from regular
+ 284 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.