Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,526 for REFLECT (0.38 sec)

  1. test/fixedbugs/issue35073a.go

    // license that can be found in the LICENSE file.
    
    // Test that reflect.Value.UnsafeAddr/Pointer is handled
    // correctly by -d=checkptr
    
    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	n := 10
    	m := make(map[string]string)
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr())
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 497 bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/stdversion/stdversion.go

    package stdversion
    
    import "reflect"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 142 bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod6.go

    package main
    
    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    func (s S) N() { println("S.N") }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	methV := v.MethodByName("M")
    	methV.Call([]reflect.Value{v})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 666 bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/mock_threshold_notifier_test.go

    //
    
    // Package eviction is a generated GoMock package.
    package eviction
    
    import (
    	context "context"
    	reflect "reflect"
    	time "time"
    
    	gomock "go.uber.org/mock/gomock"
    	v1alpha1 "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    )
    
    // MockManager is a mock of Manager interface.
    type MockManager struct {
    	ctrl     *gomock.Controller
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testplugin/testdata/issue18584/plugin.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"
    
    type C struct {
    }
    
    func F(c *C) *C {
    	return nil
    }
    
    func G() bool {
    	var c *C
    	return reflect.TypeOf(F).Out(0) == reflect.TypeOf(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 326 bytes
    - Viewed (0)
  6. pkg/kubelet/status/testing/mock_pod_status_provider.go

    //
    //	mockgen -source=status_manager.go -destination=testing/mock_pod_status_provider.go -package=testing PodStatusProvider
    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	reflect "reflect"
    
    	gomock "go.uber.org/mock/gomock"
    	v1 "k8s.io/api/core/v1"
    	types "k8s.io/apimachinery/pkg/types"
    	container "k8s.io/kubernetes/pkg/kubelet/container"
    	types0 "k8s.io/kubernetes/pkg/kubelet/types"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. pkg/kubelet/apis/podresources/testing/provider_mock.go

    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	reflect "reflect"
    
    	gomock "go.uber.org/mock/gomock"
    	v1 "k8s.io/api/core/v1"
    	v10 "k8s.io/kubelet/pkg/apis/podresources/v1"
    )
    
    // MockDevicesProvider is a mock of DevicesProvider interface.
    type MockDevicesProvider struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. pkg/proxy/util/localdetector_test.go

    		}
    
    		ifLocal := localDetector.IfLocal()
    		ifNotLocal := localDetector.IfNotLocal()
    
    		if !reflect.DeepEqual(ifLocal, c.expectedIfLocalOutput) {
    			t.Errorf("IfLocal, expected: '%v', but got: '%v'", c.expectedIfLocalOutput, ifLocal)
    		}
    
    		if !reflect.DeepEqual(ifNotLocal, c.expectedIfNotLocalOutput) {
    			t.Errorf("IfNotLocal, expected: '%v', but got: '%v'", c.expectedIfNotLocalOutput, ifNotLocal)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 15:34:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. pkg/kubelet/cadvisor/testing/cadvisor_mock.go

    // Generated by this command:
    //
    //	mockgen -source=types.go -destination=testing/cadvisor_mock.go -package=testing Interface
    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	reflect "reflect"
    
    	v1 "github.com/google/cadvisor/info/v1"
    	v2 "github.com/google/cadvisor/info/v2"
    	gomock "go.uber.org/mock/gomock"
    )
    
    // MockInterface is a mock of Interface interface.
    type MockInterface struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/RuntimePropertyResolver.kt

    import org.gradle.internal.declarativedsl.mappingToJvm.RuntimePropertyResolver.WriteResolution.UnresolvedWrite
    import java.lang.reflect.Modifier
    import kotlin.reflect.KClass
    import kotlin.reflect.KMutableProperty
    import kotlin.reflect.KProperty
    import kotlin.reflect.KVisibility
    import kotlin.reflect.full.memberFunctions
    import kotlin.reflect.full.memberProperties
    
    
    interface RuntimePropertyResolver {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 17:34:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top