- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,307 for REFLECT (0.11 sec)
-
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) -
src/cmd/cgo/internal/testplugin/testdata/issue18584/plugin.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 326 bytes - Viewed (0) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go
// https://golang.org/pkg/unsafe/#Pointer. switch x := astutil.Unparen(x).(type) { case *ast.SelectorExpr: // "(6) Conversion of a reflect.SliceHeader or // reflect.StringHeader Data field to or from Pointer." if x.Sel.Name != "Data" { break } // reflect.SliceHeader and reflect.StringHeader are okay, // but only if they are pointing at a real slice or string. // It's not okay to do: // var x SliceHeader
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.7K bytes - Viewed (0) -
test/fixedbugs/issue65957.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 ( "./a" "reflect" ) var s = []rune{0, 1, 2, 3} func main() { m := map[any]int{} k := reflect.New(reflect.ArrayOf(4, reflect.TypeOf(int32(0)))).Elem().Interface() m[k] = 1 a.F()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 05:32:14 UTC 2024 - 368 bytes - Viewed (0) -
test/typeparam/nested.go
package main import ( "fmt" "reflect" ) type test struct { TArgs [2]reflect.Type Instance reflect.Type } var tests []test type intish interface{ ~int } type Int int type GlobalInt = Int // allow access to global Int, even when shadowed func F[A intish]() { add := func(B, T interface{}) { tests = append(tests, test{ TArgs: [2]reflect.Type{ reflect.TypeOf(A(0)),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 30 17:23:27 UTC 2022 - 3K bytes - Viewed (0) -
schema/constraint_test.go
} for _, name := range []string{"Name", "Constraint"} { if reflect.ValueOf(result).FieldByName(name).Interface() != reflect.ValueOf(v).FieldByName(name).Interface() { t.Errorf( "check %v %v should equal, expects %v, got %v", k, name, reflect.ValueOf(result).FieldByName(name).Interface(), reflect.ValueOf(v).FieldByName(name).Interface(), ) } } } }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sun Feb 04 07:49:19 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/kubelet/pod/testing/mock_manager.go
// // mockgen -source=pod_manager.go -destination=testing/mock_manager.go -package=testing Manager // // 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" types0 "k8s.io/kubernetes/pkg/kubelet/types" ) // MockManager is a mock of Manager interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 8.8K bytes - Viewed (0)