Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for RemoveAll (0.2 sec)

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

        assertFalse(
            "removeAll(emptyCollection) should return false",
            collection.removeAll(MinimalCollection.of()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAll_nonePresent() {
        assertFalse(
            "removeAll(disjointCollection) should return false",
            collection.removeAll(MinimalCollection.of(e3())));
        expectUnchanged();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

        assertFalse(
            "removeAll(emptyCollection) should return false",
            collection.removeAll(MinimalCollection.of()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAll_nonePresent() {
        assertFalse(
            "removeAll(disjointCollection) should return false",
            collection.removeAll(MinimalCollection.of(e3())));
        expectUnchanged();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. cmd/jwt_test.go

    func TestWebRequestAuthenticate(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	creds := globalActiveCred
    	token, err := getTokenString(creds.AccessKey, creds.SecretKey)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          Set<Object> keys = cache.asMap().keySet();
          assertFalse(keys.remove(null));
          assertFalse(keys.remove(6));
          assertFalse(keys.remove(-6));
          assertFalse(keys.removeAll(asList(null, 0, 15, 1500)));
          assertFalse(keys.retainAll(asList(null, 0, 15, 1500)));
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_remove() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  7. cmd/os-readdir_test.go

    			if err != nil {
    				os.RemoveAll(dir)
    				t.Fatalf("Unable to create a file, %s", err)
    			}
    		}
    		entries, err := readDirN(dir, testCase.n)
    		if err != nil {
    			os.RemoveAll(dir)
    			t.Fatalf("Unable to read entries, %s", err)
    		}
    		if len(entries) != testCase.expectedNum {
    			os.RemoveAll(dir)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  8. cmd/os-reliable.go

    			// here.
    			return errFileAccessDenied
    		}
    	}
    	return err
    }
    
    // Reliably retries os.RemoveAll if for some reason os.RemoveAll returns
    // syscall.ENOTEMPTY (children has files).
    func reliableRemoveAll(dirPath string) (err error) {
    	i := 0
    	for {
    		// Removes all the directories and files.
    		if err = RemoveAll(dirPath); err != nil {
    			// Retry only for the first retryable error.
    			if isSysErrNotEmpty(err) && i == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingCollection.java

      }
    
      /**
       * A sensible definition of {@link #removeAll} in terms of {@link #iterator}, using the iterator's
       * {@code remove} method. If you override {@link #iterator}, you may wish to override {@link
       * #removeAll} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardRemoveAll(Collection<?> collection) {
        return Iterators.removeAll(iterator(), collection);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 8.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top