- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 108 for elim (6.28 sec)
-
src/go/types/typexpr.go
// Consequently, generic types cannot be parenthesized. return check.definedType(e.X, def) case *ast.ArrayType: if e.Len == nil { typ := new(Slice) setDefType(def, typ) typ.elem = check.varType(e.Elt) return typ } typ := new(Array) setDefType(def, typ) // Provide a more specific error when encountering a [...] array
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/validation/validation.go
if err := util.UnmarshalWithJSONPB(iopvalString, values, true); err != nil { return util.NewErrs(err), "" } validationErrors = util.AppendErrs(validationErrors, ValidateSubTypes(reflect.ValueOf(values).Elem(), failOnMissingValidation, values, iopls)) featureErrors, featureWarningMessages := validateFeatures(values, iopls) validationErrors = util.AppendErrs(validationErrors, featureErrors)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 20:02:28 UTC 2024 - 14.9K bytes - Viewed (0) -
pkg/kubelet/apis/config/helpers_test.go
paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path))...) case reflect.Struct: for i := 0; i < tp.NumField(); i++ { field := tp.Field(i) paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, field.Type, path.Child(field.Name)))...) } case reflect.Map, reflect.Slice: paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path.Key("*")))...) case reflect.Interface:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go
"prefix/ns/pod3": *makeTestStoreElement(makeTestPod("pod3", 6)), } items := make(map[string]storeElement) for _, item := range store.List() { elem := item.(*storeElement) items[elem.Key] = *elem } if !apiequality.Semantic.DeepEqual(expected, items) { t.Errorf("expected %v, got %v", expected, items) } } // Test Replace. store.Replace([]interface{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 35.4K bytes - Viewed (0) -
src/testing/fstest/testfs.go
if _, ok := t.fsys.(fs.GlobFS); !ok { return } // Make a complex glob pattern prefix that only matches dir. var glob string if dir != "." { elem := strings.Split(dir, "/") for i, e := range elem { var pattern []rune for j, r := range e { if r == '*' || r == '?' || r == '\\' || r == '[' || r == '-' { pattern = append(pattern, '\\', r) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.3K bytes - Viewed (0) -
src/go/types/resolver.go
// Note that this uses / always, even on Windows, because Go import // paths always use forward slashes. path := obj.imported.path elem := path if i := strings.LastIndex(elem, "/"); i >= 0 { elem = elem[i+1:] } if obj.name == "" || obj.name == "." || obj.name == elem { check.softErrorf(obj, UnusedImport, "%q imported and not used", path) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
return } data, err = json.Marshal(unstr) if err != nil { t.Errorf("Error when marshaling unstructured: %v", err) return } unmarshalledObj := reflect.New(reflect.TypeOf(item).Elem()).Interface() err = json.Unmarshal(data, &unmarshalledObj) if err != nil { t.Errorf("Error when unmarshaling to object: %v", err) return } if !apiequality.Semantic.DeepEqual(item, unmarshalledObj) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0) -
src/go/types/operand.go
// type, x's type V and T have identical element types, // and at least one of V or T is not a named type. if Vc, ok := Vu.(*Chan); ok && Vc.dir == SendRecv { if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) { return !hasName(V) || !hasName(T), InvalidChanAssign } } // optimization: if we don't have type parameters, we're done if Vp == nil && Tp == nil { return false, IncompatibleAssign }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11.1K bytes - Viewed (0) -
src/encoding/binary/binary.go
if decodeFast(bs, order, data) { return nil } } // Fallback to reflect-based decoding. v := reflect.ValueOf(data) size := -1 switch v.Kind() { case reflect.Pointer: v = v.Elem() size = dataSize(v) case reflect.Slice: size = dataSize(v) } if size < 0 { return errors.New("binary.Read: invalid type " + reflect.TypeOf(data).String()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:29:31 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
// type, x's type V and T have identical element types, // and at least one of V or T is not a named type. if Vc, ok := Vu.(*Chan); ok && Vc.dir == SendRecv { if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) { return !hasName(V) || !hasName(T), InvalidChanAssign } } // optimization: if we don't have type parameters, we're done if Vp == nil && Tp == nil { return false, IncompatibleAssign }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0)