Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 54 for Pkgs (0.29 sec)

  1. src/internal/reflectlite/reflect_mirror_test.go

    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)
    	}
    }
    
    func TestMirrorWithReflect(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/dist/test.go

    // will always include at least one package.
    func (opts *goTest) packages() []string {
    	pkgs := opts.pkgs
    	if opts.pkg != "" {
    		pkgs = append(pkgs[:len(pkgs):len(pkgs)], opts.pkg)
    	}
    	if len(pkgs) == 0 {
    		panic("no packages")
    	}
    	return pkgs
    }
    
    // printSkip prints a skip message for all of goTest.
    func (opts *goTest) printSkip(t *tester, msg string) {
    	if t.json {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/load.go

    // As a side effect, buildStacks also constructs ld.pkgs,
    // the list of all packages loaded.
    func (ld *loader) buildStacks() {
    	if len(ld.pkgs) > 0 {
    		panic("buildStacks")
    	}
    	for _, pkg := range ld.roots {
    		pkg.stack = pkg // sentinel to avoid processing in next loop
    		ld.pkgs = append(ld.pkgs, pkg)
    	}
    	for i := 0; i < len(ld.pkgs); i++ { // not range: appending to ld.pkgs in loop
    		pkg := ld.pkgs[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/inl_test.go

    		"compress/flate.byLiteral.Less": true,
    		"compress/flate.byLiteral.Swap": true,
    	}
    
    	notInlinedReason := make(map[string]string)
    	pkgs := make([]string, 0, len(want))
    	for pname, fnames := range want {
    		pkgs = append(pkgs, pname)
    		for _, fname := range fnames {
    			fullName := pname + "." + fname
    			if _, ok := notInlinedReason[fullName]; ok {
    				t.Errorf("duplicate func: %s", fullName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/cmd/covdata/dump.go

    	if d.cmd == debugDumpMode {
    		fmt.Printf("totalStmts: %d coveredStmts: %d\n", d.totalStmts, d.coveredStmts)
    	}
    	if d.cmd == pkglistMode {
    		pkgs := make([]string, 0, len(d.pkgpaths))
    		for p := range d.pkgpaths {
    			pkgs = append(pkgs, p)
    		}
    		sort.Strings(pkgs)
    		for _, p := range pkgs {
    			fmt.Printf("%s\n", p)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/vendor.go

    		case isExplicit[m]:
    			io.WriteString(w, "## explicit\n")
    		case goVersion != "":
    			fmt.Fprintf(w, "## go %s\n", goVersion)
    		}
    
    		pkgs := modpkgs[m]
    		sort.Strings(pkgs)
    		for _, pkg := range pkgs {
    			fmt.Fprintf(w, "%s\n", pkg)
    			vendorPkg(vdir, pkg)
    		}
    	}
    
    	if includeAllReplacements {
    		// Record unused and wildcard replacements at the end of the modules.txt file:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/workcmd/sync.go

    		SilenceUnmatchedWarnings: true,
    	}
    	for _, m := range mms.Versions() {
    		opts.MainModule = m
    		_, pkgs := modload.LoadPackages(ctx, opts, "all")
    		opts.MainModule = module.Version{} // reset
    
    		var (
    			mustSelect   []module.Version
    			inMustSelect = map[module.Version]bool{}
    		)
    		for _, pkg := range pkgs {
    			if r := modload.PackageModule(pkg); r.Version != "" && !inMustSelect[r] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/action.go

    // That is, the input a1 represents "go build pkgs" and the result represents "go build -buildmode=shared pkgs".
    func (b *Builder) buildmodeShared(mode, depMode BuildMode, args []string, pkgs []*load.Package, a1 *Action) *Action {
    	name, err := libname(args, pkgs)
    	if err != nil {
    		base.Fatalf("%v", err)
    	}
    	return b.linkSharedAction(mode, depMode, name, a1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/pkg.go

    				p.Internal.CmdlinePkgLiteral = true
    			}
    			pkgs = append(pkgs, p)
    		}
    	}
    
    	if opts.MainOnly {
    		pkgs = mainPackagesOnly(pkgs, matches)
    	}
    
    	// Now that CmdlinePkg is set correctly,
    	// compute the effective flags for all loaded packages
    	// (not just the ones matching the patterns but also
    	// their dependencies).
    	setToolFlags(pkgs...)
    
    	setPGOProfilePath(pkgs)
    
    	return pkgs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    		pkgs := goDirPackages(t.T, longdir, singlefilepkgs)
    		errPkg := len(pkgs) - 1
    		if wantError && action == "errorcheckandrundir" {
    			// The last pkg should compiled successfully and will be run in next case.
    			// Preceding pkg must return an error from compileInDir.
    			errPkg--
    		}
    		importcfgfile := importcfg(pkgs)
    		for i, pkg := range pkgs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top