Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 3,055 for REFLECT (0.11 sec)

  1. pkg/test/util/structpath/instance.go

    		case reflect.Float32, reflect.Float64:
    			return i.equalsNumber(reflect.ValueOf(expected).Float(), path)
    		case reflect.Int, reflect.Int8, reflect.Int32, reflect.Int64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Int()), path)
    		case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Uint()), path)
    		case protoMessageType.Kind():
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/factory.go

    	lock             sync.Mutex
    	defaultResync    time.Duration
    	customResync     map[reflect.Type]time.Duration
    	transform        cache.TransformFunc
    
    	informers map[reflect.Type]cache.SharedIndexInformer
    	// startedInformers is used for tracking which informers have been started.
    	// This allows Start() to be called multiple times safely.
    	startedInformers map[reflect.Type]bool
    	// wg tracks how many goroutines were started.
    	wg sync.WaitGroup
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/factory.go

    	lock             sync.Mutex
    	defaultResync    time.Duration
    	customResync     map[reflect.Type]time.Duration
    	transform        cache.TransformFunc
    
    	informers map[reflect.Type]cache.SharedIndexInformer
    	// startedInformers is used for tracking which informers have been started.
    	// This allows Start() to be called multiple times safely.
    	startedInformers map[reflect.Type]bool
    	// wg tracks how many goroutines were started.
    	wg sync.WaitGroup
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/codegen/GradleApiExtensionsTest.kt

    import java.util.jar.JarEntry
    import java.util.jar.JarOutputStream
    import java.util.jar.Manifest
    import kotlin.reflect.KClass
    
    
    @LeaksFileHandles("embedded Kotlin compiler environment keepalive")
    class GradleApiExtensionsTest : TestWithClassPath() {
    
        @Test
        fun `maps java-lang-Class to kotlin-reflect-KClass`() {
    
            apiKotlinExtensionsGenerationFor(ClassToKClass::class) {
    
                assertGeneratedExtensions(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  5. schema/callbacks_test.go

    	}
    
    	for _, str := range []string{"BeforeSave", "AfterCreate"} {
    		if !reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) {
    			t.Errorf("%v should be true", str)
    		}
    	}
    
    	for _, str := range []string{"BeforeCreate", "BeforeUpdate", "AfterUpdate", "AfterSave", "BeforeDelete", "AfterDelete", "AfterFind"} {
    		if reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 939 bytes
    - Viewed (0)
  6. src/encoding/xml/typeinfo.go

    // returns a zero reflect.Value.
    func (finfo *fieldInfo) value(v reflect.Value, shouldInitNilPointers bool) reflect.Value {
    	for i, x := range finfo.idx {
    		if i > 0 {
    			t := v.Type()
    			if t.Kind() == reflect.Pointer && t.Elem().Kind() == reflect.Struct {
    				if v.IsNil() {
    					if !shouldInitNilPointers {
    						return reflect.Value{}
    					}
    					v.Set(reflect.New(v.Type().Elem()))
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. test/fixedbugs/issue27695c.go

    func (t *T) Foo(e error) error {
    	runtime.GC()
    	return e
    }
    
    func main() {
    	// Functions
    	d := reflect.MakeFunc(reflect.TypeOf(func(e error) error { return e }),
    		func(args []reflect.Value) []reflect.Value {
    			runtime.GC()
    			return args
    		}).Interface().(func(error) error)
    	f(d)
    
    	// Methods
    	x := reflect.ValueOf(&T{}).Method(0).Interface().(func(error) error)
    	f(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 13 22:52:09 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/internal/alias/alias_purego.go

    // This is the Google App Engine standard variant based on reflect
    // because the unsafe package and cgo are disallowed.
    
    import "reflect"
    
    // AnyOverlap reports whether x and y share memory at any (not necessarily
    // corresponding) index. The memory beyond the slice length is ignored.
    func AnyOverlap(x, y []byte) bool {
    	return len(x) > 0 && len(y) > 0 &&
    		reflect.ValueOf(&x[0]).Pointer() <= reflect.ValueOf(&y[len(y)-1]).Pointer() &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/integration/GradleApiParameterNamesTest.kt

    import org.gradle.kotlin.dsl.PluginDependenciesSpecScope
    
    import org.hamcrest.CoreMatchers.equalTo
    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Test
    
    import kotlin.reflect.KClass
    import kotlin.reflect.full.declaredFunctions
    import kotlin.reflect.full.valueParameters
    
    
    class GradleApiParameterNamesTest {
    
        @Test
        fun `Kotlin delegation generated member has parameter names`() {
    
            assertHasParameterNames(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. clause/expression.go

    		case map[string]interface{}:
    			for k, v := range value {
    				namedMap[k] = v
    			}
    		default:
    			var appendFieldsToMap func(reflect.Value)
    			appendFieldsToMap = func(reflectValue reflect.Value) {
    				reflectValue = reflect.Indirect(reflectValue)
    				switch reflectValue.Kind() {
    				case reflect.Struct:
    					modelType := reflectValue.Type()
    					for i := 0; i < modelType.NumField(); i++ {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top