- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 3,055 for REFLECT (0.27 sec)
-
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) -
test/typeparam/double.go
want := MySlice{2, 4, 6} got := _DoubleElems[MySlice, int](arg) if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } // constraint type inference got = _DoubleElems[MySlice](arg) if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } got = _DoubleElems(arg) if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.5K bytes - Viewed (0) -
test/fixedbugs/bug248.dir/bug3.go
func main() { // check that reflect paths are correct, // meaning that reflect data for v0, v1 didn't get confused. // path is full (rooted) path name. check suffix for gc, prefix for gccgo if s := reflect.TypeOf(v0).PkgPath(); !strings.HasSuffix(s, "/bug0") && !strings.HasPrefix(s, "bug0") { println("bad v0 path", len(s), s) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 26 15:20:42 UTC 2018 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/LoggingDeprecatedFeatureHandlerTest.groovy
new StackTraceElement('java.lang.reflect.Method', 'invoke', 'Method.java', 498), new StackTraceElement('some.Class', 'withoutSource', null, -1), new StackTraceElement('some.Class', 'withNativeMethod', null, -2), new StackTraceElement('java.lang.reflect.Method', 'invoke', 'Method.java', 498), new StackTraceElement('java.lang.reflect.Method', 'invoke', 'Method.java', 498),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 16:09:54 UTC 2024 - 22.2K bytes - Viewed (0) -
test/fixedbugs/issue47068.dir/b.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package b import "reflect" func B() { t1 := reflect.TypeOf([30]int{}) t2 := reflect.TypeOf(new([30]int)).Elem() if t1 != t2 { panic("[30]int types do not match") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 19:49:23 UTC 2021 - 334 bytes - Viewed (0) -
pilot/pkg/config/kube/crd/config_test.go
obj.Status = status if got := obj.GetStatus(); !reflect.DeepEqual(status, got) { t.Errorf("GetStatus() => got %v, want %v", got, status) } meta := metav1.ObjectMeta{Name: "test"} obj.ObjectMeta = meta if got := obj.GetObjectMeta(); !reflect.DeepEqual(meta, got) { t.Errorf("GetObjectMeta() => got %v, want %v", got, meta) } if got := obj.DeepCopy(); !reflect.DeepEqual(*got, obj) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
import static java.lang.reflect.Modifier.PRIVATE; import static java.lang.reflect.Modifier.PROTECTED; import static java.lang.reflect.Modifier.PUBLIC; import static java.util.Arrays.asList; import com.google.common.base.Optional; import com.google.common.reflect.ClassPath; import com.google.common.reflect.ClassPath.ClassInfo; import com.google.common.reflect.TypeToken; import java.lang.reflect.Method;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/DummyProxy.java
import com.google.common.collect.Sets; import com.google.common.reflect.AbstractInvocationHandler; import com.google.common.reflect.Invokable; import com.google.common.reflect.Parameter; import com.google.common.reflect.TypeToken; import java.io.Serializable; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 08 17:31:55 UTC 2024 - 3.9K bytes - Viewed (0) -
src/internal/unsafeheader/unsafeheader.go
// // This package allows packages that cannot import "reflect" to use types that // are tested to be equivalent to reflect.SliceHeader and reflect.StringHeader. package unsafeheader import ( "unsafe" ) // Slice is the runtime representation of a slice. // It cannot be used safely or portably and its representation may // change in a later release. // // Unlike reflect.SliceHeader, its Data field is sufficient to guarantee the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 16:14:17 UTC 2020 - 1.1K bytes - Viewed (0) -
test/reflectmethod4.go
// The linker can prune methods that are not directly called or // assigned to interfaces, but only if reflect.Value.Method is // never used. Test it here. package main import "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M func main() { reflect.ValueOf(v).Method(0).Interface().(func())() if !called { panic("UniqueMethodName not called") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 22:07:02 UTC 2016 - 573 bytes - Viewed (0)