Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 6,145 for pkgh (0.19 sec)

  1. src/go/types/instantiate_test.go

    func TestInstantiateNonEquality(t *testing.T) {
    	const src = "package p; type T[P any] int"
    	pkg1 := mustTypecheck(src, nil, nil)
    	pkg2 := mustTypecheck(src, nil, nil)
    	// We consider T1 and T2 to be distinct types, so their instances should not
    	// be deduplicated by the context.
    	T1 := pkg1.Scope().Lookup("T").Type().(*Named)
    	T2 := pkg2.Scope().Lookup("T").Type().(*Named)
    	ctxt := NewContext()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/cmd/dist/test.go

    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 {
    		enc := json.NewEncoder(os.Stdout)
    		for _, pkg := range opts.packages() {
    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/fix/fix.go

    	pkgs := load.PackagesAndErrors(ctx, load.PackageOpts{}, args)
    	w := 0
    	for _, pkg := range pkgs {
    		if pkg.Error != nil {
    			base.Errorf("%v", pkg.Error)
    			continue
    		}
    		pkgs[w] = pkg
    		w++
    	}
    	pkgs = pkgs[:w]
    
    	printed := false
    	for _, pkg := range pkgs {
    		if modload.Enabled() && pkg.Module != nil && !pkg.Module.Main {
    			if !printed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  4. cmd/import-boss/main_test.go

    }
    
    func TestInverse(t *testing.T) {
    	pkgs, err := loadPkgs("./testdata/inverse/...")
    	if err != nil {
    		t.Fatalf("unexpected failure: %v", err)
    	}
    	if len(pkgs) != 10 {
    		t.Fatalf("expected 10 pkg results, got %d", len(pkgs))
    	}
    
    	boss := newBoss(pkgs)
    
    	var errs []error
    	for _, pkg := range pkgs {
    		errs = append(errs, boss.Verify(pkg)...)
    	}
    
    	expect := []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/cmd/cover/func.go

    	for {
    		var pkg Pkg
    		err := dec.Decode(&pkg)
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			return nil, fmt.Errorf("decoding go list json: %v", err)
    		}
    		pkgs[pkg.ImportPath] = &pkg
    	}
    	return pkgs, nil
    }
    
    // findFile finds the location of the named file in GOROOT, GOPATH etc.
    func findFile(pkgs map[string]*Pkg, file string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  6. cmd/import-boss/main.go

    	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...)
    		}
    	}
    
    	fail := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/index_test.go

    			t.FailNow()
    		}
    	}
    
    	// Check packages in increasing complexity, one at a time.
    	pkgs := []string{
    		"crypto",
    		"encoding",
    		"unsafe",
    		"encoding/json",
    		"runtime",
    		"net",
    	}
    	var raws []*rawPackage
    	for _, pkg := range pkgs {
    		raw := importRaw(src, pkg)
    		raws = append(raws, raw)
    		t.Run(pkg, func(t *testing.T) {
    			data := encodeModuleBytes([]*rawPackage{raw})
    			m, err := fromBytes(src, data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 28 23:35:08 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. src/go/doc/comment_test.go

    	)
    
    	if b := pkg.HTML(input); string(b) != wantHTML {
    		t.Errorf("%s", diff.Diff("pkg.HTML", b, "want", []byte(wantHTML)))
    	}
    	if b := pkg.Markdown(input); string(b) != wantMarkdown {
    		t.Errorf("%s", diff.Diff("pkg.Markdown", b, "want", []byte(wantMarkdown)))
    	}
    	if b := pkg.Text(input); string(b) != wantText {
    		t.Errorf("%s", diff.Diff("pkg.Text", b, "want", []byte(wantText)))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 06:33:18 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/symtab.go

    	X86HasSSE41     *obj.LSym
    	// Wasm
    	WasmDiv *obj.LSym
    	// Wasm
    	WasmTruncS *obj.LSym
    	// Wasm
    	WasmTruncU *obj.LSym
    }
    
    // Pkgs holds known packages.
    var Pkgs struct {
    	Go       *types.Pkg
    	Itab     *types.Pkg
    	Runtime  *types.Pkg
    	Coverage *types.Pkg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:26 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object.go

    	// setParent sets the parent scope of the object.
    	setParent(*Scope)
    
    	// sameId reports whether obj.Id() and Id(pkg, name) are the same.
    	// If foldCase is true, names are considered equal if they are equal with case folding
    	// and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal).
    	sameId(pkg *Package, name string, foldCase bool) bool
    
    	// scopePos returns the start position of the scope of this Object
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top