Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 110 for Map (0.09 sec)

  1. src/net/http/routing_tree_test.go

    			// when there was no match, but we include it for completeness.
    			"empty",
    			buildTree("/"), "", "/",
    			"",
    		},
    	} {
    		t.Run(test.name, func(t *testing.T) {
    			ms := map[string]bool{}
    			test.tree.matchingMethods(test.host, test.path, ms)
    			keys := mapKeys(ms)
    			slices.Sort(keys)
    			got := strings.Join(keys, ",")
    			if got != test.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. src/runtime/pprof/vminfo_darwin_test.go

    	// Analysis Tool Version:  Xcode 14.3 (14E222b)
    	//
    	// Physical footprint:         1.2G
    	// Physical footprint (peak):  1.2G
    	// Idle exit:                  untracked
    	// ----
    	//
    	// Virtual Memory Map of process 53799 (gopls)
    	// Output report format:  2.4  -64-bit process
    	// VM page size:  16384 bytes
    	//
    	// ==== Non-writable regions for process 53799
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 19:59:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/runtime/tracebuf.go

    	pos      int       // next write offset in arr
    	lenPos   int       // position of batch length value
    }
    
    // traceBuf is per-M tracing buffer.
    //
    // TODO(mknyszek): Rename traceBuf to traceBatch, since they map 1:1 with event batches.
    type traceBuf struct {
    	_ sys.NotInHeap
    	traceBufHeader
    	arr [64<<10 - unsafe.Sizeof(traceBufHeader{})]byte // underlying buffer for traceBufHeader.buf
    }
    
    // byte appends v to buf.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. src/internal/coverage/pods/pods.go

    // (C5, C6).
    func collectPodsImpl(files []string, dirIndices []int, warn bool) []Pod {
    	metaRE := regexp.MustCompile(fmt.Sprintf(`^%s\.(\S+)$`, coverage.MetaFilePref))
    	mm := make(map[string]protoPod)
    	for _, f := range files {
    		base := filepath.Base(f)
    		if m := metaRE.FindStringSubmatch(base); m != nil {
    			tag := m[1]
    			// We need to allow for the possibility of duplicate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    	line := f.Syntax.addLine(nil, "use", AutoQuote(diskPath))
    	f.Use = append(f.Use, &Use{Path: diskPath, ModulePath: modulePath, Syntax: line})
    }
    
    func (f *WorkFile) SetUse(dirs []*Use) {
    	need := make(map[string]string)
    	for _, d := range dirs {
    		need[d.Path] = d.ModulePath
    	}
    
    	for _, d := range f.Use {
    		if modulePath, ok := need[d.Path]; ok {
    			d.ModulePath = modulePath
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/go/ast/import.go

    			}
    		}
    	}
    
    	var comments []*CommentGroup
    	if last >= 0 {
    		comments = f.Comments[first : last+1]
    	}
    
    	// Assign each comment to the import spec on the same line.
    	importComments := map[*ImportSpec][]cgPos{}
    	specIndex := 0
    	for _, g := range comments {
    		for specIndex+1 < len(specs) && pos[specIndex+1].Start <= g.Pos() {
    			specIndex++
    		}
    		var left bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/mime/quotedprintable/reader_test.go

    func TestExhaustive(t *testing.T) {
    	if *useQprint {
    		_, err := exec.LookPath("qprint")
    		if err != nil {
    			t.Fatalf("Error looking for qprint: %v", err)
    		}
    	}
    
    	var buf strings.Builder
    	res := make(map[string]int)
    	n := 6
    	if testing.Short() {
    		n = 4
    	}
    	everySequence("", "0A \r\n=", n, func(s string) {
    		if strings.HasSuffix(s, "=") || strings.Contains(s, "==") {
    			return
    		}
    		buf.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/toolchain/switch.go

    	}
    	return versions.List, nil
    }
    
    // pathToolchains returns the list of toolchain versions available to GOTOOLCHAIN=path or =min+path mode.
    func pathToolchains(ctx context.Context) ([]string, error) {
    	have := make(map[string]bool)
    	var list []string
    	for _, dir := range pathDirs() {
    		if dir == "" || !filepath.IsAbs(dir) {
    			// Refuse to use local directories in $PATH (hard-coding exec.ErrDot).
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. src/internal/platform/supported.go

    	switch goos {
    	case "plan9", "ios":
    		return false
    	}
    	return true
    }
    
    // osArchInfo describes information about an OSArch extracted from cmd/dist and
    // stored in the generated distInfo map.
    type osArchInfo struct {
    	CgoSupported bool
    	FirstClass   bool
    	Broken       bool
    }
    
    // CgoSupported reports whether goos/goarch supports cgo.
    func CgoSupported(goos, goarch string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/compress/lzw/writer.go

    		if err1 := w.incHi(); err1 != nil {
    			if err1 == errOutOfCodes {
    				continue
    			}
    			w.err = err1
    			return 0, w.err
    		}
    		// Otherwise, insert key -> e.hi into the map that e.table represents.
    		for {
    			if w.table[hash] == invalidEntry {
    				w.table[hash] = (key << 12) | w.hi
    				break
    			}
    			hash = (hash + 1) & tableMask
    		}
    	}
    	w.savedCode = code
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top