Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,174 for expectHead (0.16 sec)

  1. internal/hash/errors.go

    1. }
    2.  
    3. func (e SHA256Mismatch) Error() string {
    4. return "Bad sha256: Expected " + e.ExpectedSHA256 + " does not match calculated " + e.CalculatedSHA256
    5. }
    6.  
    7. // BadDigest - Content-MD5 you specified did not match what we received.
    8. type BadDigest struct {
    9. ExpectedMD5 string
    10. CalculatedMD5 string
    11. }
    12.  
    13. func (e BadDigest) Error() string {
    14. return "Bad digest: Expected " + e.ExpectedMD5 + " does not match calculated " + e.CalculatedMD5
    15. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. cmd/tier_test.go

    1. case tierRequestsSuccess:
    2. succ += metric.Value
    3. case tierRequestsFailure:
    4. fail += metric.Value
    5. }
    6. }
    7. if int(succ) != expSuccess {
    8. t.Fatalf("Expected %d successes but got %f", expSuccess, succ)
    9. }
    10. if int(fail) != expFailure {
    11. t.Fatalf("Expected %d failures but got %f", expFailure, fail)
    12. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 21 04:13:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    1. }
    2.  
    3. if len(events) > 0 {
    4. slices.SortFunc(events, func(a, b Event) int {
    5. // Prefer Expiration over Transition for both current
    6. // and noncurrent versions when,
    7. // - now is past the expected time to action
    8. // - expected time to action is the same for both actions
    9. if now.After(a.Due) && now.After(b.Due) || a.Due.Equal(b.Due) {
    10. switch a.Action {
    11. case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

    1. else -> readToken()
    2. } ?: return // Expected a value.
    3.  
    4. val replaced = parameters.put(peek, parameterValue)
    5. peek = null
    6. if (replaced != null) return // Unexpected duplicate parameter.
    7. if (!skipCommasAndWhitespace() && !exhausted()) return // Expected ',' or EOF.
    8. }
    9. result.add(Challenge(schemeName, parameters))
    10. }
    11. }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. cmd/object-api-deleteobject_test.go

    1. if err != nil && !isErrObjectNotFound(err) {
    2. t.Log(oi)
    3. t.Errorf("Test %d: %s: Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err)
    4. continue
    5. }
    6.  
    7. result, err := obj.ListObjects(context.Background(), testCase.bucketName, "", "", "", 1000)
    8. if err != nil {
    9. t.Errorf("Test %d: %s: Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err.Error())
    10. continue
    11. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom_test.go

    1. if testCase.expectedErr {
    2. t.Log(err)
    3. }
    4. if err != nil && !testCase.expectedErr {
    5. t.Errorf("Expected success, but found %s", err)
    6. }
    7. if err == nil && testCase.expectedErr {
    8. t.Error("Expected error, but got `nil`")
    9. }
    10. if update != testCase.expectedUpdate {
    11. t.Errorf("Expected %t, got %t", testCase.expectedUpdate, update)
    12. }
    13. })
    14. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 01 14:38:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

    1. throw new AssertionError(
    2. "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
    3. }
    4. if (userPassedSupplier) {
    5. throw new AssertionError(
    6. "expected to throw "
    7. + expectedThrowable.getSimpleName()
    8. + " but returned result: "
    9. + result);
    10. } else {
    11. throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java

    1. throw new AssertionError(
    2. "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
    3. }
    4. if (userPassedSupplier) {
    5. throw new AssertionError(
    6. "expected to throw "
    7. + expectedThrowable.getSimpleName()
    8. + " but returned result: "
    9. + result);
    10. } else {
    11. throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

    1. requestBuilder.url("ftp://hostname/path")
    2. }.also { expected ->
    3. assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
    4. }
    5. }
    6.  
    7. @Test
    8. fun invalidPort() {
    9. val requestBuilder = Request.Builder()
    10. assertFailsWith<IllegalArgumentException> {
    11. requestBuilder.url("http://localhost:65536/")
    12. }.also { expected ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

    1. }
    2.  
    3. /**
    4. * Verifies that the {@code Set} returned by {@code nodes} has the expected mutability property
    5. * (see the {@code Graph} documentation for more information).
    6. */
    7. @Test
    8. public abstract void nodes_checkReturnedSetMutability();
    9.  
    10. /**
    11. * Verifies that the {@code Set} returned by {@code adjacentNodes} has the expected mutability
    12. * property (see the {@code Graph} documentation for more information).
    13. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top