Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for shouldFail (0.15 sec)

  1. cmd/encryption-v1_test.go

    		ETag:       "",
    		ShouldFail: true, // ETag contains multiple: -
    	},
    }
    
    func TestDecryptETag(t *testing.T) {
    	for i, test := range decryptETagTests {
    		etag, err := DecryptETag(test.ObjectKey, test.ObjectInfo)
    		if err != nil && !test.ShouldFail {
    			t.Fatalf("Test %d: should succeed but failed: %v", i, err)
    		}
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: should fail but succeeded", i)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  2. cmd/erasure-decode_test.go

    	{dataBlocks: 4, onDisks: 8, offDisks: 0, blocksize: int64(blockSizeV2), data: oneMiByte, offset: 0, length: oneMiByte, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false}, // 2
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. cmd/erasure-encode_test.go

    	algorithm                    BitrotAlgorithm
    	shouldFail, shouldFailQuorum bool
    }{
    	{dataBlocks: 2, onDisks: 4, offDisks: 0, blocksize: int64(blockSizeV2), data: oneMiByte, offset: 0, algorithm: BLAKE2b512, shouldFail: false, shouldFailQuorum: false},                             // 0
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        shouldFail(instance, Visibility.PROTECTED);
        shouldFail(instance, Visibility.PUBLIC);
      }
    
      private static void shouldFail(Class<?> cls, Visibility visibility) {
        try {
          new NullPointerTester().testStaticMethods(cls, visibility);
        } catch (AssertionError expected) {
          return;
        }
        fail("Should detect problem in " + cls.getSimpleName());
      }
    
      private static void shouldFail(Class<?> cls) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      static final class DelayingIdentityLoader<T> extends CacheLoader<T, T> {
        private final AtomicBoolean shouldWait;
        private final CountDownLatch delayLatch;
    
        DelayingIdentityLoader(AtomicBoolean shouldWait, CountDownLatch delayLatch) {
          this.shouldWait = shouldWait;
          this.delayLatch = delayLatch;
        }
    
        @CanIgnoreReturnValue // Sure, why not?
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      static final class DelayingIdentityLoader<T> extends CacheLoader<T, T> {
        private final AtomicBoolean shouldWait;
        private final CountDownLatch delayLatch;
    
        DelayingIdentityLoader(AtomicBoolean shouldWait, CountDownLatch delayLatch) {
          this.shouldWait = shouldWait;
          this.delayLatch = delayLatch;
        }
    
        @CanIgnoreReturnValue // Sure, why not?
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
Back to top