Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for hp (0.02 sec)

  1. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        }
      }
    
      public void testFromHost() {
        HostAndPort hp = HostAndPort.fromHost("gmail.com");
        assertEquals("gmail.com", hp.getHost());
        assertFalse(hp.hasPort());
    
        hp = HostAndPort.fromHost("[::1]");
        assertEquals("::1", hp.getHost());
        assertFalse(hp.hasPort());
    
        try {
          HostAndPort.fromHost("gmail.com:80");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 11:19:47 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/scope_container_test.go

    	tcases := []struct {
    		name     string
    		hp       []HintProvider
    		expected []map[string][]TopologyHint
    	}{
    		{
    			name:     "No hint providers",
    			hp:       []HintProvider{},
    			expected: ([]map[string][]TopologyHint)(nil),
    		},
    		{
    			name: "HintProvider returns empty non-nil map[string][]TopologyHint",
    			hp: []HintProvider{
    				&mockHintProvider{
    					map[string][]TopologyHint{},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 12 11:25:55 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/policy_test.go

    )
    
    type policyMergeTestCase struct {
    	name     string
    	hp       []HintProvider
    	expected TopologyHint
    }
    
    func commonPolicyMergeTestCases(numaNodes []int) []policyMergeTestCase {
    	return []policyMergeTestCase{
    		{
    			name: "Two providers, 1 hint each, same mask, both preferred 1/2",
    			hp: []HintProvider{
    				&mockHintProvider{
    					map[string][]TopologyHint{
    						"resource1": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:08 UTC 2022
    - 34.6K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/topologymanager/scope_pod_test.go

    	tcases := []struct {
    		name     string
    		hp       []HintProvider
    		expected []map[string][]TopologyHint
    	}{
    		{
    			name:     "No hint providers",
    			hp:       []HintProvider{},
    			expected: ([]map[string][]TopologyHint)(nil),
    		},
    		{
    			name: "HintProvider returns empty non-nil map[string][]TopologyHint",
    			hp: []HintProvider{
    				&mockHintProvider{
    					map[string][]TopologyHint{},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 12 11:25:55 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/topologymanager/topology_manager_test.go

    	tcases := []struct {
    		name string
    		hp   []HintProvider
    	}{
    		{
    			name: "Add HintProvider",
    			hp: []HintProvider{
    				&mockHintProvider{},
    				&mockHintProvider{},
    				&mockHintProvider{},
    			},
    		},
    	}
    	mngr := manager{}
    	mngr.scope = NewContainerScope(NewNonePolicy())
    	for _, tc := range tcases {
    		for _, hp := range tc.hp {
    			mngr.AddHintProvider(hp)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 13:04:32 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/range.go

    		// Assign variables on the LHS of the range statement. Use *hp to get the element.
    		e := ir.NewStarExpr(base.Pos, hp)
    		e.SetBounded(true)
    		a := rangeAssign2(nrange, hv1, e)
    		body = append(body, a)
    
    		// Advance pointer for next iteration of the loop.
    		// This reads from hp and writes to hu.
    		huVal = ir.NewConvExpr(base.Pos, ir.OCONVNOP, types.Types[types.TUNSAFEPTR], hp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  7. src/net/hosts.go

    	expire time.Time
    	path   string
    	mtime  time.Time
    	size   int64
    }
    
    func readHosts() {
    	now := time.Now()
    	hp := hostsFilePath
    
    	if now.Before(hosts.expire) && hosts.path == hp && len(hosts.byName) > 0 {
    		return
    	}
    	mtime, size, err := stat(hp)
    	if err == nil && hosts.path == hp && hosts.mtime.Equal(mtime) && hosts.size == size {
    		hosts.expire = now.Add(cacheMaxAge)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. test/fixedbugs/issue15572.dir/b.go

    package b
    
    import "./a"
    
    func F() {
    	a.F()
    	a.Fi()
    }
    
    func Fp() {
    	a.Fp()
    	a.Fip()
    }
    
    func Gp() {
    	a.Gp()
    	a.Gip()
    }
    
    func Hp() {
    	a.Hp()
    	a.Hip()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 09 06:16:07 UTC 2016
    - 309 bytes
    - Viewed (0)
  9. pkg/proxy/kubemark/hollow_proxy.go

    			NodeRef: &v1.ObjectReference{
    				Kind:      "Node",
    				Name:      nodeName,
    				UID:       types.UID(nodeName),
    				Namespace: "",
    			},
    		},
    	}
    }
    
    func (hp *HollowProxy) Run() error {
    
    	if err := hp.ProxyServer.Run(context.TODO()); err != nil {
    		return fmt.Errorf("Error while running proxy: %w", err)
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15572.dir/a.go

    }
    
    func Gp() map[int]*T {
    	return map[int]*T{0: &T{}}
    }
    
    func Gip() map[int]*T {
    	return map[int]*T{0: {}} // element with implicit composite literal type
    }
    
    func Hp() map[*T]int {
    	return map[*T]int{&T{}: 0}
    }
    
    func Hip() map[*T]int {
    	return map[*T]int{{}: 0} // key with implicit composite literal type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 09 06:16:07 UTC 2016
    - 738 bytes
    - Viewed (0)
Back to top