- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 763 for typeOff (0.12 sec)
-
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/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: Mon Nov 27 17:53:42 UTC 2023 - 10K bytes - Viewed (0) -
src/encoding/gob/type_test.go
} } func TestArrayType(t *testing.T) { var a3 [3]int a3int := getTypeUnlocked("foo", reflect.TypeOf(a3)) newa3int := getTypeUnlocked("bar", reflect.TypeOf(a3)) if a3int != newa3int { t.Errorf("second registration of [3]int creates new type") } var a4 [4]int a4int := getTypeUnlocked("goo", reflect.TypeOf(a4)) if a3int == a4int { t.Errorf("registration of [3]int creates same type as [4]int") } var b3 [3]bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt
""" plugins { id("my.plugin") } inline fun <reified T> typeOf(value: T) = typeOf<T>() println("nested: " + typeOf(nested)) nested { println("nested{} " + typeOf(this)) } println("beans: " + typeOf(beans)) beans { println("beans{} " + typeOf(beans)) } // ensure API usage println(beans.create("bar").name)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 11:39:00 UTC 2024 - 39.6K bytes - Viewed (0) -
src/main/webapp/css/admin/html5shiv.min.js
c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d....
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Sun Dec 31 23:16:54 UTC 2017 - 2.7K bytes - Viewed (0) -
src/crypto/x509/pkcs8_test.go
keyHex: pkcs8RSAPrivateKeyHex, keyType: reflect.TypeOf(&rsa.PrivateKey{}), }, { name: "P-224 private key", keyHex: pkcs8P224PrivateKeyHex, keyType: reflect.TypeOf(&ecdsa.PrivateKey{}), curve: elliptic.P224(), }, { name: "P-256 private key", keyHex: pkcs8P256PrivateKeyHex, keyType: reflect.TypeOf(&ecdsa.PrivateKey{}), curve: elliptic.P256(), }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 19 16:45:10 UTC 2022 - 9K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go
{ Name: "X", Type: reflect.TypeOf(int(0)), }, }) println(t.Name()) } func useFuncOf() { t := reflect.FuncOf( []reflect.Type{reflect.TypeOf(int(0))}, []reflect.Type{reflect.TypeOf(int(0))}, false, ) println(t.Name()) } func main() { useStructOf() useFuncOf() var t T meth, _ := reflect.TypeOf(t).MethodByName("F") ft := meth.Type at := ft.In(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 994 bytes - Viewed (0) -
test/convert.go
package main import "reflect" func typeof(x interface{}) string { return reflect.TypeOf(x).String() } func f() int { return 0 } func g() int { return 0 } type T func() int var m = map[string]T{"f": f} type A int type B int var a A = 1 var b B = 2 var x int func main() { want := typeof(g) if t := typeof(f); t != want { println("type of f is", t, "want", want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 02:19:43 UTC 2012 - 833 bytes - Viewed (0) -
src/cmd/cgo/internal/testgodefs/testdata/fieldtypedef.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main /* struct S1 { int f1; }; struct S2 { struct S1 s1; }; typedef struct S1 S1Type; typedef struct S2 S2Type; */ import "C" type S1 C.S1Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 21:57:36 UTC 2023 - 349 bytes - Viewed (0) -
pkg/kubelet/apis/config/register_test.go
AllowedTags: map[reflect.Type]bool{ reflect.TypeOf(logsapi.LoggingConfiguration{}): true, reflect.TypeOf(tracingapi.TracingConfiguration{}): true, reflect.TypeOf(metav1.Duration{}): true, reflect.TypeOf(metav1.TypeMeta{}): true, reflect.TypeOf(v1.NodeConfigSource{}): true, reflect.TypeOf(v1.Taint{}): true, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 16:55:02 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8148.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 8148. A typedef of an unnamed struct didn't work when used // with an exported Go function. No runtime test; just make sure it // compiles. package cgotest /* typedef struct { int i; } T; int get8148(void); */ import "C" //export issue8148Callback func issue8148Callback(t *C.T) C.int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 526 bytes - Viewed (0)