61 matches across 1 files for func main path:src/archive/tar/reader_test.go path:src/archive/tar/reader_test.go
snippet_mode: auto · sorted by relevance
src/archive/tar/reader_test.go GO 61 matches · showing 5 view file →
25)
26
27func TestReader(t *testing.T) {
28 vectors := []struct {
29 file string // Test input file
· · ·
633
634 for _, v := range vectors {
635 t.Run(strings.TrimSuffix(path.Base(v.file), ".base64"), func(t *testing.T) {
636 path := v.file
637 if v.obscured {
· · ·
712}
713
714func TestPartialRead(t *testing.T) {
715 type testCase struct {
716 cnt int // Number of bytes to read
· · ·
738
739 for _, v := range vectors {
740 t.Run(path.Base(v.file), func(t *testing.T) {
741 f, err := os.Open(v.file)
742 if err != nil {
· · ·
767}
768
769func TestUninitializedRead(t *testing.T) {
770 f, err := os.Open("testdata/gnu.tar")
771 if err != nil {
+ 56 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.