Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 285 for pkpath (1.35 sec)

  1. src/go/internal/srcimporter/srcimporter_test.go

    	}
    }
    
    func testImportPath(t *testing.T, pkgPath string) {
    	if !testenv.HasSrc() {
    		t.Skip("no source code available")
    	}
    
    	pkgName := path.Base(pkgPath)
    
    	pkg, err := importer.Import(pkgPath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if pkg.Name() != pkgName {
    		t.Errorf("got %q; want %q", pkg.Name(), pkgName)
    	}
    
    	if pkg.Path() != pkgPath {
    		t.Errorf("got %q; want %q", pkg.Path(), pkgPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue49110.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "reflect"
    
    func main() {
    	_ = reflect.StructOf([]reflect.StructField{
    		{Name: "_", PkgPath: "main", Type: reflect.TypeOf(int(0))},
    		{Name: "_", PkgPath: "main", Type: reflect.TypeOf(int(0))},
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 21:35:48 UTC 2021
    - 389 bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/gccgo.go

    	gcargs = append(gcargs, "-fdebug-prefix-map="+b.WorkDir+"=/tmp/go-build")
    	gcargs = append(gcargs, "-gno-record-gcc-switches")
    	if pkgpath := gccgoPkgpath(p); pkgpath != "" {
    		gcargs = append(gcargs, "-fgo-pkgpath="+pkgpath)
    	}
    	if p.Internal.LocalPrefix != "" {
    		gcargs = append(gcargs, "-fgo-relative-import-path="+p.Internal.LocalPrefix)
    	}
    
    	args := str.StringList(tools.compiler(), "-c", gcargs, "-o", ofile, forcedGccgoflags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/go/internal/gccgoimporter/testdata/pointer.gox

    v1;
    package pointer;
    pkgpath pointer;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 83 bytes
    - Viewed (0)
  5. cmd/import-boss/main_test.go

    	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)
    	errs := boss.Verify(pkgs[0])
    
    	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)
  6. src/go/internal/gccgoimporter/testdata/complexnums.gox

    v1;
    package complexnums;
    pkgpath complexnums;
    priority 1;
    const NN = -0.1E1-0.1E1i ;
    const NP = -0.1E1+0.1E1i ;
    const PN = 0.1E1-0.1E1i ;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 164 bytes
    - Viewed (0)
  7. src/internal/pkgbits/decoder.go

    // IR export data from input. pkgPath is the package path for the
    // compilation unit that produced the export data.
    //
    // TODO(mdempsky): Remove pkgPath parameter; unneeded since CL 391014.
    func NewPkgDecoder(pkgPath, input string) PkgDecoder {
    	pr := PkgDecoder{
    		pkgPath: pkgPath,
    	}
    
    	// TODO(mdempsky): Implement direct indexing of input string to
    	// avoid copying the position information.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/gcimporter_test.go

    			data[k]++
    		}
    		// 4) write the file
    		pkgpath += "_corrupted"
    		filename := filepath.Join(corruptdir, pkgpath) + ".a"
    		os.WriteFile(filename, data, 0666)
    
    		// test that importing the corrupted file results in an error
    		_, err = Import(fset, make(map[string]*types.Package), pkgpath, corruptdir, nil)
    		if err == nil {
    			t.Errorf("import corrupted %q succeeded", pkgpath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. misc/ios/go_ios_exec.go

    	// the package being tested and the source root.
    	pkgpath = ""
    	for _, element := range strings.Split(finalPkgpath, string(filepath.Separator)) {
    		if debug {
    			log.Printf("copying %s", pkgpath)
    		}
    		pkgpath = filepath.Join(pkgpath, element)
    		dst := filepath.Join(dstbase, pkgpath)
    		src := filepath.Join(cwd, pkgpath)
    		if err := copyLocalDir(dst, src); err != nil {
    			return "", err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/parser.go

    		}
    		p.expectEOL()
    
    	case "pkgpath":
    		p.next()
    		p.pkgpath = p.parseUnquotedString()
    		p.maybeCreatePackage()
    		p.expectEOL()
    
    	case "prefix":
    		p.next()
    		p.pkgpath = p.parseUnquotedString()
    		p.expectEOL()
    
    	case "import":
    		p.next()
    		pkgname := p.parseUnquotedString()
    		pkgpath := p.parseUnquotedString()
    		p.getPkg(pkgpath, pkgname)
    		p.parseString()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top