Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 222 for SLICE (0.09 sec)

  1. pilot/pkg/serviceregistry/aggregate/controller_test.go

    	if l := len(result); l != 3 {
    		t.Fatalf("Expected length of the registries slice should be 3, got %d", l)
    	}
    
    	// Test Delete cluster2
    	ctrl.DeleteRegistry(registries[1].ClusterID, registries[1].ProviderID)
    	result = ctrl.GetRegistries()
    	if l := len(result); l != 2 {
    		t.Fatalf("Expected length of the registries slice should be 2, got %d", l)
    	}
    	// check left registries are orders as before
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/ureader.go

    // the current unified IR element.
    type readerDict struct {
    	// bounds is a slice of typeInfos corresponding to the underlying
    	// bounds of the element's type parameters.
    	bounds []typeInfo
    
    	// tparams is a slice of the constructed TypeParams for the element.
    	tparams []*types.TypeParam
    
    	// derived is a slice of types derived from tparams, which may be
    	// instantiated while reading the current element.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/pgen.go

    				fmt.Fprintf(os.Stderr, "=-= merge locals state for %v:\n%v",
    					fn, mls)
    			}
    		}
    		leaders = make(map[*ir.Name]int64)
    	}
    
    	// Use sort.SliceStable instead of sort.Slice so stack layout (and thus
    	// compiler output) is less sensitive to frontend changes that
    	// introduce or remove unused variables.
    	sort.SliceStable(fn.Dcl, func(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/preemption/preemption_test.go

    				// Sort the values (inner victims) and the candidate itself (by its NominatedNodeName).
    				for i := range got {
    					victims := got[i].Victims().Pods
    					sort.Slice(victims, func(i, j int) bool {
    						return victims[i].Name < victims[j].Name
    					})
    				}
    				sort.Slice(got, func(i, j int) bool {
    					return got[i].Name() < got[j].Name()
    				})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. src/crypto/internal/mlkem768/mlkem768.go

    		}
    		b = b[3:]
    	}
    	return f, nil
    }
    
    // sliceForAppend takes a slice and a requested number of bytes. It returns a
    // slice with the contents of the given slice followed by that many bytes and a
    // second slice that aliases into it and contains only the extra bytes. If the
    // original slice has sufficient capacity then no allocation is performed.
    func sliceForAppend(in []byte, n int) (head, tail []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

    	// it will be defaulted with a control-plane taint for control-plane nodes. If you don't want to taint your control-plane
    	// node, set this field to an empty slice, i.e. `taints: []` in the YAML file. This field is solely used for Node registration.
    	Taints []corev1.Taint `json:"taints"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. src/encoding/gob/type.go

    	elem := m.Elem.gobType().safeString(seen)
    	return fmt.Sprintf("map[%s]%s", key, elem)
    }
    
    func (m *mapType) string() string { return m.safeString(make(map[typeId]bool)) }
    
    // Slice type
    type sliceType struct {
    	CommonType
    	Elem typeId
    }
    
    func newSliceType(name string) *sliceType {
    	s := &sliceType{CommonType{Name: name}, 0}
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/log/slog/value.go

    // It panics if v's [Kind] is not [KindGroup].
    func (v Value) Group() []Attr {
    	if sp, ok := v.any.(groupptr); ok {
    		return unsafe.Slice((*Attr)(sp), v.num)
    	}
    	panic("Group: bad kind")
    }
    
    func (v Value) group() []Attr {
    	return unsafe.Slice((*Attr)(v.any.(groupptr)), v.num)
    }
    
    //////////////// Other
    
    // Equal reports whether v and w represent the same Go value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top