Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 3,055 for REFLECT (0.12 sec)

  1. pkg/kubelet/server/stats/testing/mock_stats_provider.go

    //
    //	mockgen -source=handler.go -destination=testing/mock_stats_provider.go -package=testing Provider
    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	context "context"
    	reflect "reflect"
    
    	v1 "github.com/google/cadvisor/info/v1"
    	v2 "github.com/google/cadvisor/info/v2"
    	gomock "go.uber.org/mock/gomock"
    	v10 "k8s.io/api/core/v1"
    	types "k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue32901.dir/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"reflect"
    
    	"./c"
    )
    
    func main() {
    	x := c.F()
    	p := c.P()
    	t := reflect.PointerTo(reflect.TypeOf(x))
    	tp := reflect.TypeOf(p)
    	if t != tp {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 346 bytes
    - Viewed (0)
  3. test/fixedbugs/issue15329.go

    package main
    
    import (
    	"fmt"
    	"reflect"
    	"runtime"
    	"unsafe"
    )
    
    func main() {
    	// Test all the different ways we can invoke reflect.Value.Pointer.
    
    	// Direct method invocation.
    	check(unsafe.Pointer(testMeth(1).Pointer()), unsafe.Pointer(testMeth(2).Pointer()))
    
    	// Invocation via method expression.
    	check(unsafe.Pointer(reflect.Value.Pointer(testMeth(1))), unsafe.Pointer(reflect.Value.Pointer(testMeth(2))))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 14:01:22 UTC 2016
    - 2.1K bytes
    - Viewed (0)
  4. 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)
  5. callbacks/helper_test.go

    	}
    
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded {
    		t.Fatalf("loaded should be true")
    	}
    
    	// t1 already exist but t2 not
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t2, &t3})); !loaded {
    		t.Fatalf("loaded should be true")
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 05 02:22:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. test/typeparam/issue48185b.dir/a.go

    // license that can be found in the LICENSE file.
    
    package a
    
    import (
    	"reflect"
    	"sync"
    )
    
    type addressableValue struct{ reflect.Value }
    
    type arshalers[Options, Coder any] struct {
    	fncVals  []typedArshaler[Options, Coder]
    	fncCache sync.Map // map[reflect.Type]unmarshaler
    }
    type typedArshaler[Options, Coder any] struct {
    	typ reflect.Type
    	fnc func(Options, *Coder, addressableValue) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 07 20:37:05 UTC 2021
    - 1K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt

    import java.lang.reflect.Proxy
    import kotlin.reflect.KClass
    import kotlin.reflect.KType
    import kotlin.reflect.KTypeProjection
    import kotlin.reflect.KVariance
    import kotlin.reflect.full.createType
    import kotlin.reflect.full.declaredMemberFunctions
    import kotlin.reflect.full.instanceParameter
    import kotlin.reflect.full.isSubtypeOf
    import kotlin.reflect.typeOf
    
    
    interface ConfigureLambdaHandler {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/cli-runtime/pkg/printers/json.go

    	// we use reflect.Indirect here in order to obtain the actual value from a pointer.
    	// we need an actual value in order to retrieve the package path for an object.
    	// using reflect.Indirect indiscriminately is valid here, as all runtime.Objects are supposed to be pointers.
    	if InternalObjectPreventer.IsForbidden(reflect.Indirect(reflect.ValueOf(obj)).Type().PkgPath()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 11:23:25 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top