Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for importpath (0.14 sec)

  1. src/internal/coverage/cformat/format.go

    // same import path; counter data values will be accumulated.
    func (fm *Formatter) SetPackage(importpath string) {
    	if importpath == fm.pkg {
    		return
    	}
    	fm.pkg = importpath
    	ps, ok := fm.pm[importpath]
    	if !ok {
    		ps = new(pstate)
    		fm.pm[importpath] = ps
    		ps.unitTable = make(map[extcu]uint32)
    		ps.funcTable = make(map[fnfile]uint32)
    	}
    	fm.p = ps
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_pgo_issue66218.txt

    # the non-pgo variant's slice when it modifies the pgo variant's Imports field to
    # add the [.ForMain] suffix.
    
    go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b
    cmp stdout want
    
    -- want --
    ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]"
    ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]"
    -- go.mod --
    module m
    
    go 1.23
    
    -- a/a.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 615 bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    	// src/cmd/go/internal/modcmd/vendor.go
    	fold := str.ToFold(p.ImportPath)
    	if other := foldPath[fold]; other == "" {
    		foldPath[fold] = p.ImportPath
    	} else if other != p.ImportPath {
    		setError(ImportErrorf(p.ImportPath, "case-insensitive import collision: %q and %q", p.ImportPath, other))
    		return
    	}
    
    	if !SafeArg(p.ImportPath) {
    		setError(ImportErrorf(p.ImportPath, "invalid import path %q", p.ImportPath))
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/test.go

    			pxtestErr = err
    		}
    		if p1.Incomplete {
    			pxtestIncomplete = true
    		}
    		if p1.ImportPath == p.ImportPath {
    			pxtestNeedsPtest = true
    		} else {
    			ximports = append(ximports, p1)
    		}
    		p.XTestImports[i] = p1.ImportPath
    	}
    	p.XTestEmbedFiles, xtestEmbed, err = resolveEmbed(p.Dir, p.XTestEmbedPatterns)
    	if err != nil && pxtestErr == nil {
    		pxtestErr = &PackageError{
    			ImportStack: stk.Copy(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. src/testing/internal/testdeps/deps.go

    }
    
    func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
    	return pprof.Lookup(name).WriteTo(w, debug)
    }
    
    // ImportPath is the import path of the testing binary, set by the generated main function.
    var ImportPath string
    
    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/go/ast/import.go

    	c := s.(*ImportSpec).Comment
    	if c == nil {
    		return ""
    	}
    	return c.Text()
    }
    
    // collapse indicates whether prev may be removed, leaving only next.
    func collapse(prev, next Spec) bool {
    	if importPath(next) != importPath(prev) || importName(next) != importName(prev) {
    		return false
    	}
    	return prev.(*ImportSpec).Comment == nil
    }
    
    type posSpan struct {
    	Start token.Pos
    	End   token.Pos
    }
    
    type cgPos struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell.go

    		return cmdErr
    	}
    
    	// Fetch defaults from the package.
    	var p *load.Package
    	a := sh.action
    	if a != nil {
    		p = a.Package
    	}
    	var importPath string
    	if p != nil {
    		importPath = p.ImportPath
    		if desc == "" {
    			desc = p.Desc()
    		}
    		if dir == "" {
    			dir = p.Dir
    		}
    	}
    
    	out := string(cmdOut)
    
    	if !strings.HasSuffix(out, "\n") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/testing/benchmark.go

    func (b *B) run() {
    	labelsOnce.Do(func() {
    		fmt.Fprintf(b.w, "goos: %s\n", runtime.GOOS)
    		fmt.Fprintf(b.w, "goarch: %s\n", runtime.GOARCH)
    		if b.importPath != "" {
    			fmt.Fprintf(b.w, "pkg: %s\n", b.importPath)
    		}
    		if cpu := sysinfo.CPUName(); cpu != "" {
    			fmt.Fprintf(b.w, "cpu: %s\n", cpu)
    		}
    	})
    	if b.context != nil {
    		// Running go test --test.bench
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    		if err != nil {
    			str := err.Error()
    			str = strings.TrimPrefix(str, "\n")
    			if p.ImportPath != "" {
    				base.Errorf("# %s\n%s", p.ImportPath, str)
    			} else {
    				base.Errorf("%s", str)
    			}
    			fmt.Printf("FAIL\t%s [setup failed]\n", p.ImportPath)
    			continue
    		}
    		builds = append(builds, buildTest)
    		runs = append(runs, runTest)
    		prints = append(prints, printTest)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/exec.go

    		p1 := a1.Package
    		if p1 == nil || p1.ImportPath == "" {
    			continue
    		}
    		// Add import mapping if needed
    		// (for imports like "runtime/cgo" that appear only in generated code).
    		if !vcfgMapped[p1.ImportPath] {
    			vcfg.ImportMap[p1.ImportPath] = p1.ImportPath
    		}
    		if a1.built != "" {
    			vcfg.PackageFile[p1.ImportPath] = a1.built
    		}
    		if p1.Standard {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top