51 matches across 1 files for func main lang:Go path:src/bytes/buffer_test.go
snippet_mode: auto · sorted by relevance
src/bytes/buffer_test.go GO 51 matches · showing 5 view file →
22type negativeReader struct{}
23
24func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
25
26func init() {
· · ·
26func init() {
27 testBytes = make([]byte, N)
28 for i := 0; i < N; i++ {
· · ·
33
34// Verify that contents of buf match the string s.
35func check(t *testing.T, testname string, buf *Buffer, s string) {
36 bytes := buf.Bytes()
37 str := buf.String()
· · ·
56// The initial contents of buf corresponds to the string s;
57// the result is the final contents of buf returned as a string.
58func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
59 check(t, testname+" (fill 1)", buf, s)
60 for ; n > 0; n-- {
· · ·
75// The initial contents of buf corresponds to the string s;
76// the result is the final contents of buf returned as a string.
77func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string {
78 check(t, testname+" (fill 1)", buf, s)
79 for ; n > 0; n-- {
+ 46 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.