Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for pkgName (0.17 sec)

  1. src/crypto/purego_test.go

    	allGOARCH := make(map[string]bool)
    	for _, pair := range strings.Split(strings.TrimSpace(string(out)), "\n") {
    		GOARCH := strings.Split(pair, "/")[1]
    		allGOARCH[GOARCH] = true
    	}
    
    	for _, pkgName := range pkgs {
    		if strings.Contains(pkgName, "/boring") {
    			continue
    		}
    
    		for GOARCH := range allGOARCH {
    			context := build.Context{
    				GOOS:      "linux", // darwin has custom assembly
    				GOARCH:    GOARCH,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/coverage/encodemeta/encode.go

    		tmp: make([]byte, 0, 256),
    		h:   md5.New(),
    	}
    	x.stab.InitWriter()
    	x.stab.Lookup("")
    	x.pkgpath = x.stab.Lookup(pkgpath)
    	x.pkgname = x.stab.Lookup(pkgname)
    	x.modpath = x.stab.Lookup(modulepath)
    	io.WriteString(x.h, pkgpath)
    	io.WriteString(x.h, pkgname)
    	io.WriteString(x.h, modulepath)
    	return x, nil
    }
    
    func h32(x uint32, h hash.Hash, tmp []byte) {
    	tmp = tmp[:0]
    	tmp = append(tmp, 0, 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 17:16:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/go/ast/resolve.go

    	var p pkgBuilder
    	p.fset = fset
    
    	// complete package scope
    	pkgName := ""
    	pkgScope := NewScope(universe)
    	for _, file := range files {
    		// package names must match
    		switch name := file.Name.Name; {
    		case pkgName == "":
    			pkgName = name
    		case name != pkgName:
    			p.errorf(file.Package, "package %s; expected %s", name, pkgName)
    			continue // ignore this file
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/stmtlines_test.go

    	rdr.Seek(0)
    	for {
    		e, err := rdr.Next()
    		must(err)
    		if e == nil {
    			break
    		}
    		if e.Tag != dwarf.TagCompileUnit {
    			continue
    		}
    		pkgname, _ := e.Val(dwarf.AttrName).(string)
    		if pkgname == "runtime" {
    			continue
    		}
    		if pkgname == "crypto/internal/nistec/fiat" {
    			continue // golang.org/issue/49372
    		}
    		if e.Val(dwarf.AttrStmtList) == nil {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/go/internal/srcimporter/srcimporter_test.go

    func testImportPath(t *testing.T, pkgPath string) {
    	if !testenv.HasSrc() {
    		t.Skip("no source code available")
    	}
    
    	pkgName := path.Base(pkgPath)
    
    	pkg, err := importer.Import(pkgPath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if pkg.Name() != pkgName {
    		t.Errorf("got %q; want %q", pkg.Name(), pkgName)
    	}
    
    	if pkg.Path() != pkgPath {
    		t.Errorf("got %q; want %q", pkg.Path(), pkgPath)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/sizeof_test.go

    		{Signature{}, 28, 56},
    		{Union{}, 12, 24},
    		{Interface{}, 40, 80},
    		{Map{}, 16, 32},
    		{Chan{}, 12, 24},
    		{Named{}, 60, 112},
    		{TypeParam{}, 28, 48},
    		{term{}, 12, 24},
    
    		// Objects
    		{PkgName{}, 64, 104},
    		{Const{}, 64, 104},
    		{TypeName{}, 56, 88},
    		{Var{}, 64, 104},
    		{Func{}, 64, 104},
    		{Label{}, 60, 96},
    		{Builtin{}, 60, 96},
    		{Nil{}, 56, 88},
    
    		// Misc
    		{Scope{}, 60, 104},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/internal/reflectlite/reflect_mirror_test.go

    				}
    			}
    		}
    	}
    	return v
    }
    
    func loadTypes(path, pkgName string, v visitor) {
    	fset := token.NewFileSet()
    
    	filter := func(fi fs.FileInfo) bool {
    		return strings.HasSuffix(fi.Name(), ".go")
    	}
    	pkgs, err := parser.ParseDir(fset, path, filter, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	pkg := pkgs[pkgName]
    
    	for _, f := range pkg.Files {
    		ast.Walk(v, f)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/debug/gosym/symtab_test.go

    	assertString(t, fmt.Sprintf("receiver of %q", s2.Name), s2.ReceiverName(), "")
    }
    
    func TestIssue29551(t *testing.T) {
    	tests := []struct {
    		sym     Sym
    		pkgName string
    	}{
    		{Sym{goVersion: ver120, Name: "type:.eq.[9]debug/elf.intName"}, ""},
    		{Sym{goVersion: ver120, Name: "type:.hash.debug/elf.ProgHeader"}, ""},
    		{Sym{goVersion: ver120, Name: "type:.eq.runtime._panic"}, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 11:28:56 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/ld.go

    		case "modinfo":
    			s, err := strconv.Unquote(args)
    			if err != nil {
    				log.Fatalf("%s:%d: invalid modinfo: %v", file, lineNum, err)
    			}
    			addstrdata1(ctxt, "runtime.modinfo="+s)
    		}
    	}
    }
    
    func pkgname(ctxt *Link, lib string) string {
    	return path.Clean(lib)
    }
    
    func findlib(ctxt *Link, lib string) (string, bool) {
    	name := path.Clean(lib)
    
    	var pname string
    	isshlib := false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. src/go/types/sizeof_test.go

    		{Signature{}, 28, 56},
    		{Union{}, 12, 24},
    		{Interface{}, 40, 80},
    		{Map{}, 16, 32},
    		{Chan{}, 12, 24},
    		{Named{}, 60, 112},
    		{TypeParam{}, 28, 48},
    		{term{}, 12, 24},
    
    		// Objects
    		{PkgName{}, 48, 88},
    		{Const{}, 48, 88},
    		{TypeName{}, 40, 72},
    		{Var{}, 48, 88},
    		{Func{}, 48, 88},
    		{Label{}, 44, 80},
    		{Builtin{}, 44, 80},
    		{Nil{}, 40, 72},
    
    		// Misc
    		{Scope{}, 44, 88},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top