- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 336 for Map (0.09 sec)
-
src/cmd/go/scriptconds_test.go
"errors" "fmt" "internal/buildcfg" "internal/platform" "internal/testenv" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "strings" "sync" ) func scriptConditions() map[string]script.Cond { conds := scripttest.DefaultConds() add := func(name string, cond script.Cond) { if _, ok := conds[name]; ok { panic(fmt.Sprintf("condition %q is already registered", name)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/go/types/termlist_test.go
"∅ | 𝓤 | int | myInt", } { if got := maketl(want).String(); got != want { t.Errorf("(%v).String() == %v", want, got) } } } func TestTermlistIsEmpty(t *testing.T) { for test, want := range map[string]bool{ "∅": true, "∅ | ∅": true, "∅ | ∅ | 𝓤": false, "∅ | ∅ | myInt": false, "𝓤": false, "𝓤 | int": false, "𝓤 | myInt | ∅": false, } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
src/cmd/compile/internal/pkginit/initAsanGlobals.go
// globals. // And the key is the object name. For example, in package p, a global foo would be in this // map as "foo". // Consider range over maps is nondeterministic, make a slice to hold all the values in the // InstrumentGlobalsMap and iterate over the InstrumentGlobalsSlice. var InstrumentGlobalsMap = make(map[string]ir.Node) var InstrumentGlobalsSlice = make([]ir.Node, 0, 0) func canInstrumentGlobal(g ir.Node) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:24 UTC 2023 - 8.7K bytes - Viewed (0) -
src/testing/match.go
// Each key is the subtest name joined to the deduplicated name of the parent test. // Each value is the count of the number of occurrences of the given subtest name // already seen. subNames map[string]int32 } type filterMatch interface { // matches checks the name against the receiver's pattern strings using the // given match function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 7.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/toonew.go
// The result maps each symbol to its minimum version. // // The pkg is allowed to contain type errors. func TooNewStdSymbols(pkg *types.Package, version string) map[types.Object]string { disallowed := make(map[types.Object]string) // Pass 1: package-level symbols. symbols := stdlib.PackageSymbols[pkg.Path()] for _, sym := range symbols { symver := sym.Version.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/go/internal/str/str.go
} // FoldDup reports a pair of strings from the list that are // equal according to strings.EqualFold. // It returns "", "" if there are no such strings. func FoldDup(list []string) (string, string) { clash := map[string]string{} for _, s := range list { fold := ToFold(s) if t := clash[fold]; t != "" { if s > t { s, t = t, s } return s, t } clash[fold] = s } return "", "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 20:08:07 UTC 2024 - 2.3K bytes - Viewed (0) -
src/internal/fmtsort/sort_test.go
type sortTest struct { data any // Always a map. print string // Printed result using our custom printer. } var sortTests = []sortTest{ { map[int]string{7: "bar", -3: "foo"}, "-3:foo 7:bar", }, { map[uint8]string{7: "bar", 3: "foo"}, "3:foo 7:bar", }, { map[string]string{"7": "bar", "3": "foo"}, "3:foo 7:bar", }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.9K bytes - Viewed (0) -
lib/time/mkzip.go
log.SetFlags(0) flag.Usage = usage flag.Parse() args := flag.Args() if len(args) != 1 || !strings.HasSuffix(args[0], ".zip") { usage() } var zb bytes.Buffer zw := zip.NewWriter(&zb) seen := make(map[string]bool) err := filepath.WalkDir(".", func(path string, d fs.DirEntry, err error) error { if d.IsDir() { return nil } data, err := os.ReadFile(path) if err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:32:07 UTC 2024 - 2.1K bytes - Viewed (0) -
src/runtime/mem_bsd.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 2.2K bytes - Viewed (0) -
src/internal/trace/oldtrace_test.go
t.Fatalf("converted event did not validate; event: \n%s\nerror: %s", ev, err) } if testName == "user_task_region_1_21_good" { testedUserRegions = true validRegions := map[string]struct{}{ "post-existing region": struct{}{}, "region0": struct{}{}, "region1": struct{}{}, } // Check that we correctly convert user regions. These
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.5K bytes - Viewed (0)