Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HasPrefix (0.4 sec)

  1. src/cmd/api/api_test.go

    	*context = build.Default
    	context.Dir = filepath.Join(testenv.GOROOT(t), "src")
    
    	w := NewWalker(context, context.Dir)
    	for _, pkg := range w.stdPackages {
    		if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {
    			t.Fatalf("stdPackages contains unexpected package %s", pkg)
    		}
    	}
    }
    
    func TestIssue64958(t *testing.T) {
    	defer func() {
    		if x := recover(); x != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. misc/linkcheck/linkcheck.go

    	problems    []string
    )
    
    func localLinks(body string) (links []string) {
    	seen := map[string]bool{}
    	mv := aRx.FindAllStringSubmatch(body, -1)
    	for _, m := range mv {
    		ref := m[1]
    		if strings.HasPrefix(ref, "/src/") {
    			continue
    		}
    		if !seen[ref] {
    			seen[ref] = true
    			links = append(links, m[1])
    		}
    	}
    	return
    }
    
    var idRx = regexp.MustCompile(`\bid=['"]?([^\s'">]+)`)
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    					break
    				}
    				// Fall through in the unlikely case
    				// that filter at some point is
    				// "Pid:\t".
    			}
    			if strings.HasPrefix(line, filter) {
    				if line == expected {
    					foundAThread = true
    					break
    				}
    				if filter == "Groups:" && strings.HasPrefix(line, "Groups:\t") {
    					// https://github.com/golang/go/issues/46145
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback_windows.go

    			continue
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    		if !strings.HasPrefix(fname, "test.") {
    			continue
    		}
    		got = append(got, fname)
    	}
    	if !reflect.DeepEqual(want, got) {
    		t.Errorf("incorrect backtrace:\nwant:\t%v\ngot:\t%v", want, got)
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
Back to top