Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 550 for typeOff (0.13 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtensionContainerExtensionsTest.kt

            val extensions = mock<ExtensionContainer>()
            doNothing().`when`(extensions).add(any<TypeOf<SomeExtension<*>>>(), any(), any())
    
            val instance = SomeExtension("some")
            extensions.add<SomeExtension<String>>("name", instance)
    
            inOrder(extensions) {
                verify(extensions).add(typeOf<SomeExtension<String>>(), "name", instance)
                verifyNoMoreInteractions()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testshared/testdata/exe/exe.go

    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	runtime.GC()
    	depBase.V = depBase.F() + 1
    
    	var c *C
    	if reflect.TypeOf(F).Out(0) != reflect.TypeOf(c) {
    		panic("bad reflection results, see golang.org/issue/18252")
    	}
    
    	sp := reflect.New(reflect.TypeOf(slicePtr).Elem())
    	s := sp.Interface()
    
    	if reflect.TypeOf(s) != reflect.TypeOf(slicePtr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 906 bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TypeOfExtensions.kt

     */
    package org.gradle.kotlin.dsl
    
    import org.gradle.api.reflect.TypeOf
    
    
    /**
     * Creates an instance of [TypeOf] for the given parameterized type.
     *
     * @param T the type
     * @return the [TypeOf] that captures the generic type of the given parameterized type
     */
    inline fun <reified T> typeOf(): TypeOf<T> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 947 bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    template <typename T>
    class FooTest : public testing::Test {
     public:
      ...
      typedef std::list<T> List;
      static T shared_;
      T value_;
    };
    
    // Next, associate a list of types with the test case, which will be
    // repeated for each type in the list.  The typedef is necessary for
    // the macro to parse correctly.
    typedef testing::Types<char, int, unsigned int> MyTypes;
    TYPED_TEST_CASE(FooTest, MyTypes);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/interface.go

    	// This function returns false if the name does not refer to a known object type.
    	Resolve(name string) (TypeRef, bool)
    }
    
    // TypeRef refers an object type that can be looked up for its fields.
    type TypeRef interface {
    	ref.Type
    
    	// CELType wraps the TypeRef to be a type that is understood by CEL.
    	CELType() *types.Type
    
    	// Field finds the field by the field name, or false if the field is not known.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/ptr_test.go

    var ptrTests = []ptrTest{
    	{
    		// Passing a pointer to a struct that contains a Go pointer.
    		name: "ptr1",
    		c:    `typedef struct s1 { int *p; } s1; void f1(s1 *ps) {}`,
    		body: `C.f1(&C.s1{new(C.int)})`,
    		fail: true,
    	},
    	{
    		// Passing a pointer to a struct that contains a Go pointer.
    		name: "ptr2",
    		c:    `typedef struct s2 { int *p; } s2; void f2(s2 *ps) {}`,
    		body: `p := &C.s2{new(C.int)}; C.f2(p)`,
    		fail: true,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue27340/a.go

    // pointer types, because we generate code passing a struct ptr rather
    // than using the typedef. This warning is expected and does not break
    // a normal build.
    // We can only disable -Wincompatible-pointer-types starting with GCC 5.
    
    // #if __GNU_MAJOR__ >= 5
    //
    // #pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
    //
    // typedef struct {
    // 	int a;
    // } issue27340Struct, *issue27340Ptr;
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver.go

    )
    
    const object = common.RootTypeReferenceName
    
    type TypeResolver struct {
    }
    
    // Resolve resolves the TypeRef for the given type name
    // that starts with "Object".
    // This is the unstructured version, which means the
    // returned TypeRef does not refer to the schema.
    func (r *TypeResolver) Resolve(name string) (common.TypeRef, bool) {
    	if !strings.HasPrefix(name, object) {
    		return nil, false
    	}
    	return NewTypeRef(name), true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/stream_executor/stream_executor.h

    #define SE_MINOR 0
    #define SE_PATCH 1
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    typedef struct SP_Stream_st* SP_Stream;
    typedef struct SP_Event_st* SP_Event;
    typedef struct SP_Timer_st* SP_Timer;
    // Takes `callback_arg` passed to `host_callback` as the first argument.
    typedef void (*SE_StatusCallbackFn)(void* const, TF_Status* const);
    
    typedef struct SP_TimerFns {
      size_t struct_size;
      void* ext;  // reserved for future use
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  10. pkg/config/schema/collections/collections.gen.go

    		VersionAliases: []string{
    			"v1",
    		},
    		Proto: "istio.security.v1beta1.AuthorizationPolicy", StatusProto: "istio.meta.v1alpha1.IstioStatus",
    		ReflectType: reflect.TypeOf(&istioioapisecurityv1beta1.AuthorizationPolicy{}).Elem(), StatusType: reflect.TypeOf(&istioioapimetav1alpha1.IstioStatus{}).Elem(),
    		ProtoPackage: "istio.io/api/security/v1beta1", StatusPackage: "istio.io/api/meta/v1alpha1",
    		ClusterScoped: false,
    		Synthetic:     false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 31.4K bytes
    - Viewed (0)
Back to top