Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,526 for REFLECT (0.12 sec)

  1. src/crypto/x509/pkcs8_test.go

    	tests := []struct {
    		name    string
    		keyHex  string
    		keyType reflect.Type
    		curve   elliptic.Curve
    	}{
    		{
    			name:    "RSA private key",
    			keyHex:  pkcs8RSAPrivateKeyHex,
    			keyType: reflect.TypeOf(&rsa.PrivateKey{}),
    		},
    		{
    			name:    "P-224 private key",
    			keyHex:  pkcs8P224PrivateKeyHex,
    			keyType: reflect.TypeOf(&ecdsa.PrivateKey{}),
    			curve:   elliptic.P224(),
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 16:45:10 UTC 2022
    - 9K bytes
    - Viewed (0)
  2. pkg/kubelet/container/testing/runtime_mock.go

    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	context "context"
    	io "io"
    	url "net/url"
    	reflect "reflect"
    	time "time"
    
    	gomock "go.uber.org/mock/gomock"
    	v1 "k8s.io/api/core/v1"
    	types "k8s.io/apimachinery/pkg/types"
    	remotecommand "k8s.io/client-go/tools/remotecommand"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. utils/utils.go

    		}
    	}
    	return false
    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    	if x == nil || y == nil {
    		return false
    	}
    
    	xval := reflect.ValueOf(x)
    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    
    	if valuer, ok := x.(driver.Valuer); ok {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/fix/cftype.go

    	// we use reflect to find all such references.
    	if len(badNils) > 0 {
    		exprType := reflect.TypeFor[ast.Expr]()
    		exprSliceType := reflect.TypeFor[[]ast.Expr]()
    		walk(f, func(n any) {
    			if n == nil {
    				return
    			}
    			v := reflect.ValueOf(n)
    			if v.Type().Kind() != reflect.Pointer {
    				return
    			}
    			if v.IsNil() {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/register_test.go

    		GroupName:          GroupName,
    		SchemeGroupVersion: SchemeGroupVersion,
    		AddToScheme:        AddToScheme,
    		AllowedTags: map[reflect.Type]bool{
    			reflect.TypeOf(metav1.TypeMeta{}):              true,
    			reflect.TypeOf(metav1.Duration{}):              true,
    			reflect.TypeOf(logsapi.LoggingConfiguration{}): true,
    		},
    	}
    
    	if err := componentconfigtesting.VerifyInternalTypePackage(pkginfo); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 06:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/runtime/time_test.go

    	// runtime.timeTimer (exported for testing as TimeTimer)
    	// must have time.Timer and time.Ticker as a prefix
    	// (meaning those two must have the same layout).
    	runtimeTimeTimer := reflect.TypeOf(runtime.TimeTimer{})
    
    	check := func(name string, typ reflect.Type) {
    		n1 := runtimeTimeTimer.NumField()
    		n2 := typ.NumField()
    		if n1 != n2+1 {
    			t.Errorf("runtime.TimeTimer has %d fields, want %d (%s has %d fields)", n1, n2+1, name, n2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 03:40:04 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue35073b.go

    // Test that we can inline the receiver arguments for
    // reflect.Value.UnsafeAddr/Pointer, even in checkptr mode.
    
    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	n := 10                      // ERROR "moved to heap: n"
    	m := make(map[string]string) // ERROR "moved to heap: m" "make\(map\[string\]string\) escapes to heap"
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr()) // ERROR "inlining call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 706 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go

    		gvkToType:                 map[schema.GroupVersionKind]reflect.Type{},
    		typeToGVK:                 map[reflect.Type][]schema.GroupVersionKind{},
    		unversionedTypes:          map[reflect.Type]schema.GroupVersionKind{},
    		unversionedKinds:          map[string]reflect.Type{},
    		fieldLabelConversionFuncs: map[schema.GroupVersionKind]FieldLabelConversionFunc{},
    		defaulterFuncs:            map[reflect.Type]func(interface{}){},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 25.2K bytes
    - Viewed (0)
  9. pkg/typemap/map.go

    package typemap
    
    import (
    	"reflect"
    
    	"istio.io/istio/pkg/ptr"
    )
    
    // TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type.
    // The value stored for a type must be of the same type as the key.
    type TypeMap struct {
    	inner map[reflect.Type]any
    }
    
    func NewTypeMap() TypeMap {
    	return TypeMap{make(map[reflect.Type]any)}
    }
    
    func Set[T any](t TypeMap, v T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtils.java

    import com.google.common.collect.Ordering;
    import groovy.lang.GroovyObject;
    import org.gradle.internal.reflect.GroovyMethods;
    import org.gradle.internal.reflect.Types.TypeVisitResult;
    import org.gradle.internal.reflect.Types.TypeVisitor;
    import org.gradle.model.Managed;
    
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.Proxy;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.List;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top