76 matches across 1 files for func main lang:Go lang:Go path:src/archive/tar/writer_test.go
snippet_mode: auto · sorted by relevance
src/archive/tar/writer_test.go GO 76 matches · showing 5 view file →
24)
25
26func bytediff(a, b []byte) string {
27 const (
28 uniqueA = "- "
· · ·
53}
54
55func TestWriter(t *testing.T) {
56 type (
57 testHeader struct { // WriteHeader(hdr) == wantErr
· · ·
480 }}
481
482 equalError := func(x, y error) bool {
483 _, ok1 := x.(headerError)
484 _, ok2 := y.(headerError)
· · ·
489 }
490 for _, v := range vectors {
491 t.Run(strings.TrimSuffix(path.Base(v.file), ".base64"), func(t *testing.T) {
492 const maxSize = 10 << 10 // 10KiB
493 buf := new(bytes.Buffer)
· · ·
550}
551
552func TestPax(t *testing.T) {
553 // Create an archive with a large name
554 fileinfo, err := os.Stat("testdata/small.txt")
+ 71 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.