- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 71 for mytype (0.38 sec)
-
test/fixedbugs/issue52279.dir/lib.go
package lib type FMap[K comparable, V comparable] map[K]V //go:noinline func (m FMap[K, V]) Flip() FMap[V, K] { out := make(FMap[V, K]) return out } type MyType uint8 const ( FIRST MyType = 0 ) var typeStrs = FMap[MyType, string]{ FIRST: "FIRST", } func (self MyType) String() string { return typeStrs[self]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:15:31 UTC 2022 - 321 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go
{Type: Modified, Object: &myType{"foo", "goodbye world 3"}}, {Type: Deleted, Object: &myType{"bar", "hello world 4"}}, } // The broadcaster we're testing m := NewBroadcaster(0, WaitIfChannelFull) // Add a bunch of watchers const testWatchers = 2 wg := sync.WaitGroup{} wg.Add(testWatchers) for i := 0; i < testWatchers; i++ { w, err := m.Watch() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 16 15:26:25 UTC 2022 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go
# TYPE apiserver_authorization_decisions_total counter` metrics := []string{ namespace + "_" + subsystem + "_decisions_total", } authorizationDecisionsTotal.Reset() RegisterMetrics() dummyAuthorizer := &dummyAuthorizer{} a := InstrumentedAuthorizer("mytype", "myname", dummyAuthorizer) // allow {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 13:20:59 UTC 2024 - 3.3K bytes - Viewed (0) -
test/reflectmethod3.go
// assigned to interfaces, but only if reflect.Type.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 type MyType interface { Method(int) reflect.Method } func main() { var t MyType = reflect.TypeOf(v) t.Method(0).Func.Interface().(func(M))(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 651 bytes - Viewed (0) -
test/reflectmethod2.go
// assigned to interfaces, but only if reflect.Type.MethodByName is // never used. Test it here. package main import reflect1 "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M type MyType interface { MethodByName(string) (reflect1.Method, bool) } func main() { var t MyType = reflect1.TypeOf(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 719 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.h
// for registering the hardware. // Subclasses must implement the pure virtual function interface and // define static member variable that retrieves string identifying the Target // Hardware. Example, // class MyType : public TargetHardware { // public: // static constexpr char kId[] = "MyHardware"; // }; class TargetHardware { public: virtual ~TargetHardware() = default;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 09 21:39:59 UTC 2023 - 7.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyMapNotationConverterTest.groovy
def parser = NotationParserBuilder.toType(ExternalModuleDependency).converter(new DependencyMapNotationConverter<DefaultExternalModuleDependency>(TestUtil.instantiatorFactory().decorateLenient(), DefaultExternalModuleDependency.class)).toComposite() def "with artifact"() { when: def d = parser.parseNotation([group: 'org.gradle', name: 'gradle-core', version: '4.4-beta2', ext: 'mytype']) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyStringNotationConverterTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ReflectionTest.java
public class ReflectionTest extends TestCase { public void testGetPackageName() throws Exception { assertEquals("java.lang", Reflection.getPackageName(Iterable.class)); assertEquals("java", Reflection.getPackageName("java.MyType")); assertEquals("java.lang", Reflection.getPackageName(Iterable.class.getName())); assertEquals("", Reflection.getPackageName("NoPackage")); assertEquals("java.util", Reflection.getPackageName(Map.Entry.class)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/fix/cftype.go
// (*unsafe.Pointer)(x) where x is type *bad -> (*unsafe.Pointer)(unsafe.Pointer(x)) // (*bad.type)(x) where x is type *unsafe.Pointer -> (*bad.type)(unsafe.Pointer(x)) walk(f, func(n any) { if n == nil { return } // Find pattern like (*a.b)(x) c, ok := n.(*ast.CallExpr) if !ok { return } if len(c.Args) != 1 { return } p, ok := c.Fun.(*ast.ParenExpr) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0)