- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 319 for pkgname (0.13 sec)
-
src/cmd/cgo/internal/testcshared/cshared_test.go
t.Error(out) } } func testSignalHandlers(t *testing.T, pkgname, cfile, cmd string) { if GOOS == "windows" { t.Skipf("Skipping on %s", GOOS) } globalSkip(t) testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) testenv.MustHaveBuildMode(t, "c-shared") libname := pkgname + ".a" run(t, nil, "go", "build", "-buildmode=c-shared",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/go/build/deps_test.go
} ctxt := Default all, err := listStdPkgs(ctxt.GOROOT) if err != nil { t.Fatal(err) } for _, pkgname := range all { if strings.ToLower(pkgname) != pkgname { t.Errorf("package %q should not use upper-case path", pkgname) } } } // TestFindImports tests that findImports works. See #43249. func TestFindImports(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
} func (*Tree[R]) N(r R) R { return r } type Node[T any] struct { *Tree[T] } func (Node[Q]) M(Q) {} type Inst = *Tree[int] ` f := mustParse(src) pkg := NewPackage("p", f.PkgName.Value) if err := NewChecker(nil, pkg, nil).Files([]*syntax.File{f}); err != nil { t.Fatal(err) } firstFieldType := func(n *Named) *Named {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 21:06:56 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
if x, ok := s.X.(*syntax.Name); ok { obj := uses[x] if obj == nil { t.Errorf("%s: unresolved qualified identifier %s", x.Pos(), x.Value) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", s.Sel.Pos(), s.Sel.Value) return false } return false } return true } return true }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
func _() { A(B, nil // syntax error: missing ',' before newline in argument list } ` f, err := syntax.Parse(syntax.NewFileBase(pkgName(src)), strings.NewReader(src), func(error) {}, nil, 0) if err == nil { t.Fatal("expected syntax error") } var conf Config conf.Check(f.PkgName.Value, []*syntax.File{f}, nil) // must not panic } func TestIssue61938(t *testing.T) { const src = ` package p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/go/internal/modindex/write.go
e.IntAt(e.Pos(), sourceFileOffsetPos+4*i) encodeFile(e, f) } } func encodeFile(e *encoder, f *rawFile) { e.String(f.error) e.String(f.parseError) e.String(f.synopsis) e.String(f.name) e.String(f.pkgName) e.Bool(f.ignoreFile) e.Bool(f.binaryOnly) e.String(f.cgoDirectives) e.String(f.goBuildConstraint) e.Int(len(f.plusBuildConstraints)) for _, s := range f.plusBuildConstraints { e.String(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/doc/main.go
return pkg, arg[0:period], symbol, false } // See if we have the basename or tail of a package, as in json for encoding/json // or ivy/value for robpike.io/ivy/value. pkgName := arg[:period] for { path, ok := findNextPackage(pkgName) if !ok { break } if pkg, err = build.ImportDir(path, build.ImportComment); err == nil { return pkg, arg[0:period], symbol, true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iexport.go
// StringSize uvarint // DataSize uvarint // } // // Strings [StringSize]byte // Data [DataSize]byte // // MainIndex []struct{ // PkgPath stringOff // PkgName stringOff // PkgHeight uvarint // // Decls []struct{ // Name stringOff // Offset declOff // } // } // // Fingerprint [8]byte //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
var pkgname string if pnSymIdx := d.ldr.Lookup(dwarf.CUInfoPrefix+"packagename."+unit.Lib.Pkg, 0); pnSymIdx != 0 { pnsData := d.ldr.Data(pnSymIdx) pkgname = string(pnsData) } newattr(unit.DWInfo, dwarf.DW_AT_go_package_name, dwarf.DW_CLS_STRING, int64(len(pkgname)), pkgname) // Scan all functions in this compilation unit, create
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
*list = append(*list, name) } continue } pkg := tf.pkgName() if pkg == "documentation" { p.IgnoredGoFiles = append(p.IgnoredGoFiles, name) continue } isTest := strings.HasSuffix(name, "_test.go") isXTest := false if isTest && strings.HasSuffix(tf.pkgName(), "_test") && p.Name != tf.pkgName() { isXTest = true pkg = pkg[:len(pkg)-len("_test")] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0)