Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 301 for typeOf (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    		name    string
    		backoff Backoff
    		t       reflect.Type
    	}{
    		{name: "variable timer with jitter", backoff: Backoff{Duration: time.Millisecond, Jitter: 1.0}, t: reflect.TypeOf(&variableTimer{})},
    		{name: "fixed timer", backoff: Backoff{Duration: time.Millisecond}, t: reflect.TypeOf(&fixedTimer{})},
    		{name: "no-op timer", backoff: Backoff{}, t: reflect.TypeOf(noopTimer{})},
    	} {
    		t.Run(test.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandlerTest.groovy

    import org.gradle.api.internal.artifacts.query.ArtifactResolutionQueryFactory
    import org.gradle.api.internal.artifacts.type.ArtifactTypeRegistry
    import org.gradle.api.internal.file.TestFiles
    import org.gradle.api.plugins.ExtensionContainer
    import org.gradle.api.reflect.TypeOf
    import org.gradle.util.AttributeTestUtil
    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    import java.util.concurrent.Callable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 10:37:21 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. src/encoding/gob/type.go

    	ut, err := validUserType(rt)
    	if err != nil {
    		error_(err)
    	}
    	return ut
    }
    
    // A typeId represents a gob Type as an integer that can be passed on the wire.
    // Internally, typeIds are used as keys to a map to recover the underlying type info.
    type typeId int32
    
    var typeLock sync.Mutex // set while building a type
    const firstUserId = 64  // lowest id number granted to user
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/encoding/binary/binary.go

    		size := sizeof(t)
    		structSize.Store(t, size)
    		return size
    
    	default:
    		if v.IsValid() {
    			return sizeof(v.Type())
    		}
    	}
    
    	return -1
    }
    
    // sizeof returns the size >= 0 of variables for the given type or -1 if the type is not acceptable.
    func sizeof(t reflect.Type) int {
    	switch t.Kind() {
    	case reflect.Array:
    		if s := sizeof(t.Elem()); s >= 0 {
    			return s * t.Len()
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/crypto/cipher/gcm_test.go

    	// check for assembly implementation
    	var key [16]byte
    	asm, generic, err := newAESGCM(key[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	if reflect.TypeOf(asm) == reflect.TypeOf(generic) {
    		t.Skipf("no assembly implementation of GCM")
    	}
    
    	// generate permutations
    	type pair struct{ align, length int }
    	lengths := []int{0, 156, 8192, 8193, 8208}
    	keySizes := []int{16, 24, 32}
    	alignments := []int{0, 1, 2, 3}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectCollection.java

                                    return name;
                                }
    
                                @Override
                                public TypeOf<?> getPublicType() {
                                    return TypeOf.typeOf(getType());
                                }
                            };
                        }
                    });
                }
            };
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 16:54:51 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    type fieldsCache struct {
    	sync.Mutex
    	value atomic.Value
    }
    
    func newFieldsCache() *fieldsCache {
    	cache := &fieldsCache{}
    	cache.value.Store(make(fieldsCacheMap))
    	return cache
    }
    
    var (
    	mapStringInterfaceType = reflect.TypeOf(map[string]interface{}{})
    	stringType             = reflect.TypeOf(string(""))
    	fieldCache             = newFieldsCache()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/parse.go

    		}
    		b.printMarkdown(buf, s)
    		prevEnd = b.Pos().EndLine
    		s.prefix1 = "" // item prefix only for first block
    	}
    }
    
    var (
    	blockType   = reflect.TypeOf(new(Block)).Elem()
    	blocksType  = reflect.TypeOf(new([]Block)).Elem()
    	inlinesType = reflect.TypeOf(new([]Inline)).Elem()
    )
    
    func printb(buf *bytes.Buffer, b Block, prefix string) {
    	fmt.Fprintf(buf, "(%T", b)
    	v := reflect.ValueOf(b)
    	v = reflect.Indirect(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. 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
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectAccessorsClassPathTest.kt

    import org.gradle.api.internal.plugins.ExtensionContainerInternal
    import org.gradle.api.internal.project.ProjectInternal
    import org.gradle.api.internal.tasks.TaskContainerInternal
    import org.gradle.api.reflect.TypeOf.parameterizedTypeOf
    import org.gradle.api.tasks.Delete
    import org.gradle.api.tasks.SourceSet
    import org.gradle.api.tasks.SourceSetContainer
    import org.gradle.api.tasks.TaskContainer
    import org.gradle.api.tasks.TaskProvider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 18.5K bytes
    - Viewed (0)
Back to top