Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,689 for adder (0.06 sec)

  1. test/typeparam/adder.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 559 bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        private final Adder adder;
    
        FailsToForwardReturnValue(Adder adder) {
          this.adder = adder;
        }
    
        @Override
        public int add(int a, int b) {
          return adder.add(a, b) + 1;
        }
    
        @Override
        public String toString() {
          return adder.toString();
        }
      }
    
      private static class FailsToPropagateException implements Adder {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. test/typeparam/issue51355.go

    package main
    
    type Cache[E comparable] struct {
    	adder func(...E)
    }
    
    func New[E comparable]() *Cache[E] {
    	c := &Cache[E]{}
    
    	c.adder = func(elements ...E) {
    		for _, value := range elements {
    			value := value
    			go func() {
    				println(value)
    			}()
    		}
    	}
    
    	return c
    }
    
    func main() {
    	c := New[string]()
    	c.adder("test")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 498 bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        private final Adder adder;
    
        FailsToForwardReturnValue(Adder adder) {
          this.adder = adder;
        }
    
        @Override
        public int add(int a, int b) {
          return adder.add(a, b) + 1;
        }
    
        @Override
        public String toString() {
          return adder.toString();
        }
      }
    
      private static class FailsToPropagateException implements Adder {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultPluginManager.java

                } else {
                    final Runnable adder = addPluginInternal(plugin);
                    if (adder != null) {
                        UserCodeSource source = new DefaultUserCodeSource(plugin.getDisplayName(), pluginIdStr);
                        userCodeApplicationContext.apply(source, userCodeApplicationId ->
                            buildOperationRunner.run(new AddPluginBuildOperation(adder, plugin, pluginIdStr, pluginClass, userCodeApplicationId)));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. src/internal/types/testdata/examples/types.go

    // parameter.
    // Note: We may not permit this syntactic sugar at first.
    func _[A Adder[A], B Adder[B], C Adder[A]]() {
    	var a A // A's type bound is Adder[A]
    	a = a.Add(a)
    	var b B // B's type bound is Adder[B]
    	b = b.Add(b)
    	var c C // C's type bound is Adder[A]
    	a = c.Add(a)
    }
    
    // The type of variables (incl. parameters and return values) cannot
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoAggregationIntegrationTest.groovy

                        @Test
                        public void testAdd() {
                            Adder adder = new Adder();
                            Assert.assertEquals(2, adder.add(1, 1));
                            Assert.assertEquals(4, adder.add(2, 2));
                            Assert.assertEquals(3, adder.add(1, 2));
                        }
                    }
                """
    
                file("direct/build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 26.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder_test.go

    	orig := toJson(response)
    
    	adder := authenticator.Request(
    		NewGroupAdder(
    			authenticator.RequestFunc(func(req *http.Request) (*authenticator.Response, bool, error) {
    				return response, true, nil
    			}),
    			[]string{"added"},
    		),
    	)
    
    	r, _, _ := adder.AuthenticateRequest(nil)
    	if want := []string{"original", "added"}; !reflect.DeepEqual(r.User.GetGroups(), want) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                        @Test
                        public void testAdd() {
                            Adder adder = new Adder();
                            Assert.assertEquals(2, adder.add(1, 1));
                            Assert.assertEquals(4, adder.add(2, 2));
                            Assert.assertEquals(3, adder.add(1, 2));
                        }
                    }
                """
    
                file("direct/build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder_test.go

    	orig := toJson(response)
    
    	adder := authenticator.Token(
    		NewTokenGroupAdder(
    			authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) {
    				return response, true, nil
    			}),
    			[]string{"added"},
    		),
    	)
    
    	r, _, _ := adder.AuthenticateToken(context.Background(), "")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top