Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 522 for Map (0.07 sec)

  1. 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)
  2. src/internal/types/testdata/fixedbugs/issue66878.go

    package p
    
    func _[T bool](ch chan T) {
    	var _, _ T = <-ch
    }
    
    // offending code snippets from issue
    
    func _[T ~bool](ch <-chan T) {
    	var x, ok T = <-ch
    	println(x, ok)
    }
    
    func _[T ~bool](m map[int]T) {
    	var x, ok T = m[0]
    	println(x, ok)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 17:42:47 UTC 2024
    - 399 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top