Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for indirect$ (0.44 sec)

  1. src/cmd/go/internal/modload/buildlist.go

    	//
    	// The "direct" map controls which modules are annotated with "// indirect"
    	// comments in the go.mod file, and may impact which modules are listed as
    	// explicit roots (vs. indirect-only dependencies). However, it should not
    	// have a semantic effect on the build list overall.
    	//
    	// The initial direct map is populated from the existing "// indirect"
    	// comments (or lack thereof) in the go.mod file. It is updated by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    	}
    }
    
    // Test for go.dev/issue/52715
    func TestLookupFieldOrMethod_RecursiveGeneric(t *testing.T) {
    	const src = `
    package pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/go/types/api_test.go

    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    	}
    }
    
    // Test for go.dev/issue/52715
    func TestLookupFieldOrMethod_RecursiveGeneric(t *testing.T) {
    	const src = `
    package pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  4. tests/query_test.go

    						}
    					case "Birthday":
    						if _, ok := first[dbName].(*time.Time); !ok {
    							t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName])
    						}
    					}
    
    					reflectValue := reflect.Indirect(reflect.ValueOf(users[0]))
    					AssertEqual(t, first[dbName], reflectValue.FieldByName(name).Interface())
    				})
    			}
    		}
    	})
    
    	t.Run("FirstMapWithTable", func(t *testing.T) {
    		first := map[string]interface{}{}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/init.go

    	if toolchain != "" {
    		roots = append(roots, module.Version{Path: "toolchain", Version: toolchain})
    		// Leave the toolchain as indirect: nothing in the user's module directly
    		// imports a package from the toolchain, and (like an indirect dependency in
    		// a module without graph pruning) we may remove the toolchain line
    		// automatically if the 'go' version is changed so that it implies the exact
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/load.go

    		// it to be untidy.)
    		//
    		// Promoting an indirect dependency to a root adds the next layer of its
    		// dependencies to the module graph, which may increase the selected
    		// versions of other modules from which we have already loaded packages.
    		// So after we promote an indirect dependency to a root, we need to reload
    		// packages, which means another iteration of loading.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modget/get.go

    				retractions[i].message = err.Error()
    			}
    		})
    	}
    
    	// Load deprecations for modules mentioned on the command line. Only load
    	// deprecations for indirect dependencies if they're also direct dependencies
    	// of the main module. Deprecations of purely indirect dependencies are
    	// not actionable.
    	deprecations := make([]modMessage, 0, len(relevantMods))
    	for m, flags := range relevantMods {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  8. src/html/template/exec_test.go

    	// Fixed bugs.
    	// Must separate dot and receiver; otherwise args are evaluated with dot set to variable.
    	{"bug0", "{{range .MSIone}}{{if $.Method1 .}}X{{end}}{{end}}", "X", tVal, true},
    	// Do not loop endlessly in indirect for non-empty interfaces.
    	// The bug appears with *interface only; looped forever.
    	{"bug1", "{{.Method0}}", "M0", &iVal, true},
    	// Was taking address of interface field, so method set was empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    	// Fixed bugs.
    	// Must separate dot and receiver; otherwise args are evaluated with dot set to variable.
    	{"bug0", "{{range .MSIone}}{{if $.Method1 .}}X{{end}}{{end}}", "X", tVal, true},
    	// Do not loop endlessly in indirect for non-empty interfaces.
    	// The bug appears with *interface only; looped forever.
    	{"bug1", "{{.Method0}}", "M0", &iVal, true},
    	// Was taking address of interface field, so method set was empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

            registry.register("ref") { parentBuilder ->
                parentBuilder.unmanagedNode(Object) { node ->
                    node.addReference("indirect", String, parent)
                }
            }
            registry.register("foo") { it.unmanaged(String, "ref.indirect.child") { it } }
    
            expect:
            registry.realize("foo", String) == "value"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
Back to top