- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 36 for igmp (0.04 sec)
-
src/go/ast/filter.go
var imports []*ImportSpec if mode&FilterImportDuplicates != 0 { seen := make(map[string]bool) for _, filename := range filenames { f := pkg.Files[filename] for _, imp := range f.Imports { if path := imp.Path.Value; !seen[path] { // TODO: consider handling cases where: // - 2 imports exist with the same import path but // have different local names (one should probably
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
// import must succeed (test for issue at hand) pkg := importPkg(t, "./testdata/b", tmpdir) // make sure all indirectly imported packages have names for _, imp := range pkg.Imports() { if imp.Name() == "" { t.Errorf("no name for %s package", imp.Path()) } } } func TestTypeNamingOrder(t *testing.T) { testenv.MustHaveGoBuild(t) // This package only handles gc export data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
for _, s := range f.Decls[0].(*ast.GenDecl).Specs { if imp, _ := s.(*ast.ImportSpec); imp != nil { imports[imp.Path.Value] = imp } } for _, test := range tests { imp := imports[test.path] if imp == nil { t.Fatalf("invalid test case: import path %s not found", test.path) } got := info.PkgNameOf(imp) if got == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
// because the example needs to use the object so it must be defined // in the package or one if its imports. On the other hand, false // negatives are possible, but should be rare. for _, imp := range pkg.Imports() { if obj := imp.Scope().Lookup(name); obj != nil { ret = append(ret, obj) } } return ret } // This pattern is taken from /go/src/go/doc/example.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0) -
src/go/build/build.go
} // Record imports and information about cgo. isCgo := false for _, imp := range info.imports { if imp.path == "C" { if isTest { badGoFile(name, fmt.Errorf("use of cgo in test %s not supported", filename)) continue } isCgo = true if imp.doc != nil { if err := ctxt.saveCgo(filename, p, imp.doc); err != nil { badGoFile(name, err) } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/internal/work/gccgo.go
} } return ofiles, nil } func (gccgoToolchain) symabis(b *Builder, a *Action, sfiles []string) (string, error) { return "", nil } func gccgoArchive(basedir, imp string) string { end := filepath.FromSlash(imp + ".a") afile := filepath.Join(basedir, end) // add "lib" to the final element return filepath.Join(filepath.Dir(afile), "lib"+filepath.Base(afile)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
p.Internal.ForceLibrary = true p.Internal.PGOProfile = preal.Internal.PGOProfile } // Update p.Internal.Imports to use test copies. for i, imp := range p.Internal.Imports { if p1 := testCopy[imp]; p1 != nil && p1 != imp { split() // If the test dependencies cause a cycle with pmain, this is // where it is introduced.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
internal/config/identity/plugin/config.go
rolePolicy := env.Get(EnvIdentityPluginRolePolicy, kv.Get(RolePolicy)) if rolePolicy == "" { return args, config.Errorf("A role policy must be specified for Identity Management Plugin") } resourceID := "idmp-" roleID := env.Get(EnvIdentityPluginRoleID, kv.Get(RoleID)) if roleID == "" { // We use a hash of the plugin URL so that the ARN remains // constant across restarts. h := sha1.New()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
var _ T = template /* ERRORx "cannot use.*text/template.* as T value" */.Template{} ` ) a := mustTypecheck(asrc, nil, nil) imp := importHelper{pkg: a, fallback: defaultImporter()} withImporter := func(cfg *Config) { cfg.Importer = imp } testFiles(t, []string{"b.go"}, [][]byte{[]byte(bsrc)}, 0, false, withImporter) testFiles(t, []string{"c.go"}, [][]byte{[]byte(csrc)}, 0, false, withImporter)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0)