Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for Pkgs (0.04 sec)

  1. 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)
  2. staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh

        if [[ "${UPDATE_API_KNOWN_VIOLATIONS:-}" == "true" ]]; then
            update_report="--update-report"
        fi
    fi
    
    kube::codegen::gen_openapi \
        --extra-pkgs k8s.io/api/autoscaling/v1 `# needed for Scale type` \
        --output-dir "${SCRIPT_ROOT}/pkg/generated/openapi" \
        --output-pkg "${THIS_PKG}/pkg/generated/openapi" \
        --report-filename "${report_filename:-"/dev/null"}" \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/test.go

    	pkgOpts := load.PackageOpts{ModResolveTests: true}
    	pkgs = load.PackagesAndErrors(ctx, pkgOpts, pkgArgs)
    	load.CheckPackageErrors(pkgs)
    	if len(pkgs) == 0 {
    		base.Fatalf("no packages to test")
    	}
    
    	if testFuzz != "" {
    		if !platform.FuzzSupported(cfg.Goos, cfg.Goarch) {
    			base.Fatalf("-fuzz flag is not supported on %s/%s", cfg.Goos, cfg.Goarch)
    		}
    		if len(pkgs) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/ureader.go

    	// TODO(mdempsky): Consider using some non-nil pointer to indicate
    	// the universe scope, so we don't need to keep re-reading it.
    	if pkg := pr.pkgs[idx]; pkg != nil {
    		return pkg
    	}
    
    	pkg := pr.newReader(pkgbits.RelocPkg, idx, pkgbits.SyncPkgDef).doPkg()
    	pr.pkgs[idx] = pkg
    	return pkg
    }
    
    func (r *reader) doPkg() *types.Package {
    	path := r.String()
    	switch path {
    	case "":
    		path = r.p.PkgPath()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stdlib_test.go

    // type-checks.
    func (c *stdlibChecker) getDirPackage(dir string) (*Package, error) {
    	c.mu.Lock()
    	fut, ok := c.pkgs[dir]
    	if !ok {
    		// First request for this package dir; type check.
    		fut = &futurePackage{
    			done: make(chan struct{}),
    		}
    		c.pkgs[dir] = fut
    		files, ok := c.dirFiles[dir]
    		c.mu.Unlock()
    		if !ok {
    			fut.err = fmt.Errorf("no files for %s", dir)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/go/types/stdlib_test.go

    // type-checks.
    func (c *stdlibChecker) getDirPackage(dir string) (*Package, error) {
    	c.mu.Lock()
    	fut, ok := c.pkgs[dir]
    	if !ok {
    		// First request for this package dir; type check.
    		fut = &futurePackage{
    			done: make(chan struct{}),
    		}
    		c.pkgs[dir] = fut
    		files, ok := c.dirFiles[dir]
    		c.mu.Unlock()
    		if !ok {
    			fut.err = fmt.Errorf("no files for %s", dir)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/buildlist.go

    // both retain the same versions of all packages in pkgs and satisfy the
    // graph-pruning invariants (if applicable).
    func tidyRoots(ctx context.Context, rs *Requirements, pkgs []*loadPkg) (*Requirements, error) {
    	mainModule := MainModules.mustGetSingleMainModule()
    	if rs.pruning == unpruned {
    		return tidyUnprunedRoots(ctx, mainModule, rs, pkgs)
    	}
    	return tidyPrunedRoots(ctx, mainModule, rs, pkgs)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  8. src/go/doc/doc_test.go

    			return isGoFile(fi) && rx.MatchString(fi.Name())
    		}
    	}
    
    	// get packages
    	fset := token.NewFileSet()
    	pkgs, err := parser.ParseDir(fset, dataDir, filter, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// test packages
    	for _, pkg := range pkgs {
    		t.Run(pkg.Name, func(t *testing.T) {
    			importPath := dataDir + "/" + pkg.Name
    			var files []*ast.File
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  9. src/go/build/deps_test.go

    		name := filepath.ToSlash(path[len(src):])
    		if name == "builtin" || name == "cmd" {
    			return filepath.SkipDir
    		}
    
    		pkgs = append(pkgs, strings.TrimPrefix(name, "vendor/"))
    		return nil
    	}
    	if err := filepath.WalkDir(src, walkFn); err != nil {
    		return nil, err
    	}
    	return pkgs, nil
    }
    
    func TestDependencies(t *testing.T) {
    	if !testenv.HasSrc() {
    		// Tests run in a limited file system and we do not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testshared/shared_test.go

    // name of the shared library containing it.
    func TestShlibnameFiles(t *testing.T) {
    	globalSkip(t)
    	pkgs := append([]string{}, minpkgs...)
    	pkgs = append(pkgs, "runtime/cgo")
    	if runtime.GOARCH == "arm" {
    		pkgs = append(pkgs, "math")
    	}
    	for _, pkg := range pkgs {
    		shlibnamefile := filepath.Join(gorootInstallDir, pkg+".shlibname")
    		contentsb, err := os.ReadFile(shlibnamefile)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
Back to top