Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Pkgs (0.07 sec)

  1. cmd/import-boss/main_test.go

    	}
    }
    
    func TestSimpleForward(t *testing.T) {
    	pkgs, err := loadPkgs("./testdata/simple-fwd/aaa")
    	if err != nil {
    		t.Fatalf("unexpected failure: %v", err)
    	}
    	if len(pkgs) != 1 {
    		t.Fatalf("expected 1 pkg result, got %d", len(pkgs))
    	}
    	if pkgs[0].PkgPath != "k8s.io/kubernetes/cmd/import-boss/testdata/simple-fwd/aaa" {
    		t.Fatalf("wrong PkgPath: %q", pkgs[0].PkgPath)
    	}
    
    	boss := newBoss(pkgs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/internal/coverage/cformat/format.go

    	}
    	if _, err := fmt.Fprintf(w, "mode: %s\n", fm.cm.String()); err != nil {
    		return err
    	}
    	pkgs := make([]string, 0, len(fm.pm))
    	for importpath := range fm.pm {
    		pkgs = append(pkgs, importpath)
    	}
    	slices.Sort(pkgs)
    	for _, importpath := range pkgs {
    		p := fm.pm[importpath]
    		units := make([]extcu, 0, len(p.unitTable))
    		for u := range p.unitTable {
    			units = append(units, u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. cmd/import-boss/main.go

    func main() {
    	klog.InitFlags(nil)
    	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
    	pflag.Parse()
    
    	pkgs, err := loadPkgs(pflag.Args()...)
    	if err != nil {
    		klog.Errorf("failed to load packages: %v", err)
    	}
    
    	pkgs = massage(pkgs)
    	boss := newBoss(pkgs)
    
    	var allErrs []error
    	for _, pkg := range pkgs {
    		if pkgErrs := boss.Verify(pkg); pkgErrs != nil {
    			allErrs = append(allErrs, pkgErrs...)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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/internal/testenv/testenv.go

    // as for the packages transitively imported by the package(s) in pkgs.
    //
    // pkgs may include any package pattern that is valid to pass to 'go list',
    // so it may also be a list of Go source files all in the same directory.
    func WriteImportcfg(t testing.TB, dstPath string, packageFiles map[string]string, pkgs ...string) {
    	t.Helper()
    
    	icfg := new(bytes.Buffer)
    	icfg.WriteString("# import config\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top