Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 13 of 13 for shouldFail (0.05 seconds)

  1. internal/config/certs_test.go

    			t.Setenv(EnvCertPassword, testCase.password)
    		}
    		_, err = LoadX509KeyPair(certificate, privateKey)
    		if err != nil && !testCase.shouldFail {
    			t.Errorf("Test %d: test should succeed but it failed: %v", i, err)
    		}
    		if err == nil && testCase.shouldFail {
    			t.Errorf("Test %d: test should fail but it succeed", i)
    		}
    		os.Remove(privateKey)
    		os.Remove(certificate)
    	}
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  2. internal/crypto/header_test.go

    		}
    	}
    }
    
    var kmsParseHTTPTests = []struct {
    	Header     http.Header
    	ShouldFail bool
    }{
    	{Header: http.Header{}, ShouldFail: true},                                                     // 0
    	{Header: http.Header{"X-Amz-Server-Side-Encryption": []string{"aws:kms"}}, ShouldFail: false}, // 1
    	{Header: http.Header{
    		"X-Amz-Server-Side-Encryption":                []string{"aws:kms"},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Click Count (0)
  3. 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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 25.4K bytes
    - Click Count (0)
Back to Top