Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 1,666 for add1 (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

      public void testAdd_supportedNotPresent() {
        assertTrue("add(notPresent) should return true", collection.add(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        assertThrows(UnsupportedOperationException.class, () -> collection.add(e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

      public void testAdd_supportedNotPresent() {
        assertTrue("add(notPresent) should return true", collection.add(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        assertThrows(UnsupportedOperationException.class, () -> collection.add(e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        GREEN,
        WHITE
      }
    
      private enum Gender {
        MALE,
        FEMALE
      }
    
      public void testClassCreate() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.RED);
        ms.add(Color.YELLOW);
        ms.add(Color.RED);
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

        List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters());
        testers.add(ListMultimapAsMapTester.class);
        testers.add(ListMultimapEqualsTester.class);
        testers.add(ListMultimapPutTester.class);
        testers.add(ListMultimapPutAllTester.class);
        testers.add(ListMultimapRemoveTester.class);
        testers.add(ListMultimapReplaceValuesTester.class);
        return testers;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/monitor_test.go

    	test1Want2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{
    		LimitInBytesPerSecond:            1024 * 1024,
    		CurrentBandwidthInBytesPerSecond: (1024 * 1024) / start.Add(2*time.Second).Sub(start.Add(1*time.Second)).Seconds(),
    	}
    
    	test2Want := make(map[BucketOptions]Details)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. cmd/metrics-v3-types.go

    ) *MetricsGroup {
    	mg := &MetricsGroup{
    		CollectorPath: path,
    		Descriptors:   descriptors,
    		bucketLoader:  loader,
    	}
    	mg.validate()
    	return mg
    }
    
    // AddExtraLabels - adds extra (constant) label KV pairs to the metrics group.
    // This is a helper to initialize the `ExtraLabels` field. The argument is a
    // list of ordered label name and value pairs.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. docs/bucket/replication/DESIGN.md

    default sync metadata changes on a object version marked `REPLICA` back to source. This requires a setting in the replication configuration called [replica modification sync](https://aws.amazon.com/about-aws/whats-new/2020/12/amazon-s3-replication-adds-support-two-way-replication/).
    
    For active-active replication, automatic failover occurs on `GET/HEAD` operations if object or object version requested qualifies for replication and is missing on one site, but present on the other. This allows...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.cc

      if (gradient_tensors.size() == 1) {
        return gradient_tensors[0];
      }
    
      AbstractOperationPtr op(ctx_->CreateOperation());
      absl::Status s = op->Reset("AddN", /*raw_device_name=*/nullptr);
      if (!s.ok()) {
        return nullptr;
      }
      s = op->AddInputList(gradient_tensors);
      if (!s.ok()) {
        return nullptr;
      }
    
      int num_outputs = 1;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        public void notOverriddenInSubclass(Object o) {
          notOverriddenInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenNotAnnotatedInSubclass(Object o) {
          overriddenNotAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenAndAnnotatedInSubclass(Object o) {
          overriddenAndAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test3() throws Exception {
            DisposableUtil.add(new TestDisposable("a"));
            DisposableUtil.add(new TestDisposable2());
            DisposableUtil.add(new TestDisposable("b"));
            assertThat(DisposableUtil.disposables.size(), is(3));
            DisposableUtil.dispose();
            assertThat(count, is(3));
            assertThat(names, is("ba"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top