- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 522 for Map (0.07 sec)
-
src/runtime/mpagealloc_32bit.go
// The number of levels in the radix tree. summaryLevels = 4 // Constants for testing. pageAlloc32Bit = 1 pageAlloc64Bit = 0 // Number of bits needed to represent all indices into the L1 of the // chunks map. // // See (*pageAlloc).chunks for more details. Update the documentation // there should this number change. pallocChunksL1Bits = 0 ) // See comment in mpagealloc_64bit.go. var levelBits = [summaryLevels]uint{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 20 20:08:25 UTC 2023 - 4.6K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue66878.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 17:42:47 UTC 2024 - 399 bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
// "blocked" argument is equal to blocked. func filterBlocked(blocked string) eventFilterFn { return func(e *format.Event, _ *format.Data) bool { m, ok := e.Arg.(map[string]any) if !ok { return false } return m["blocked"] == blocked } } // filterStackRootFunc returns an event filter that returns true if the function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/go/internal/test/genflags.go
package test // passFlagToTest contains the flags that should be forwarded to // the test binary with the prefix "test.". var passFlagToTest = map[string]bool { {{- range .testFlags}} "{{.}}": true, {{- end }} } var passAnalyzersToVet = map[string]bool { {{- range .vetAnalyzers}} "{{.}}": true, {{- end }} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 09 13:37:58 UTC 2023 - 1.6K bytes - Viewed (0) -
src/go/parser/error_test.go
// expectedErrors collects the regular expressions of ERROR comments found // in files and returns them as a map of error positions to error messages. func expectedErrors(fset *token.FileSet, filename string, src []byte) map[token.Pos]string { errors := make(map[token.Pos]string) var s scanner.Scanner // file was parsed already - do not add it again to the file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 19:47:49 UTC 2022 - 5.9K bytes - Viewed (0) -
src/runtime/align_test.go
// Read the code making the tables above, to see which fields and // variables we are currently checking. checked := map[string]bool{} x, err := os.ReadFile("./align_runtime_test.go") if err != nil { t.Fatalf("read failed: %v", err) } fieldDesc := map[int]string{} r := regexp.MustCompile(`unsafe[.]Offsetof[(](\w+){}[.](\w+)[)]`) matches := r.FindAllStringSubmatch(string(x), -1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testing_test.go
m := CommentMap(strings.NewReader(src), regexp.MustCompile("^ ERROR ")) found := 0 // number of errors found for line, errlist := range m { for _, err := range errlist { if err.Pos.Line() != line { t.Errorf("%v: got map line %d; want %d", err, err.Pos.Line(), line) continue } // err.Pos.Line() == line got := strings.TrimSpace(err.Msg[len(" ERROR "):]) want := fmt.Sprintf(`"%d:%d"`, line, err.Pos.Col())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 1.4K bytes - Viewed (0) -
src/net/nss_test.go
want: &nssConf{ sources: map[string][]nssSource{ "foo": {{source: "a"}, {source: "b"}}, }, }, }, { name: "comment1", in: " foo:a b#c\n", want: &nssConf{ sources: map[string][]nssSource{ "foo": {{source: "a"}, {source: "b"}}, }, }, }, { name: "comment2", in: " foo:a b #c \n", want: &nssConf{ sources: map[string][]nssSource{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:15:51 UTC 2022 - 3.4K bytes - Viewed (0) -
src/go/types/context.go
// The use of a shared context does not guarantee that identical instances are // deduplicated in all cases. type Context struct { mu sync.Mutex typeMap map[string][]ctxtEntry // type hash -> instances entries nextID int // next unique ID originIDs map[Type]int // origin type -> unique ID } type ctxtEntry struct { orig Type targs []Type instance Type // = orig[targs] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue23434.go
package p type T /* ERROR unexpected newline */ type Map map[int] /* ERROR unexpected newline */ // Examples from go.dev/issue/23434: func g() { m := make(map[string] /* ERROR unexpected ! */ !) for { x := 1 print(x) } } func f() { m := make(map[string] /* ERROR unexpected \) */ ) for { x := 1 print(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 653 bytes - Viewed (0)