Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for expected (0.05 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			got := ExpectedExpiryTime(tc.modTime, int(tc.days))
    			if !got.Equal(tc.expected) {
    				t.Fatalf("Expected %v to be equal to %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    func TestEval(t *testing.T) {
    	testCases := []struct {
    		inputConfig            string
    		objectName             string
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-03 06:45
    - 55.6K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    		}
    		// Failed as expected, but does it fail for the expected reason.
    		if actualErr != nil && !testCase.shouldPass {
    			if testCase.expectedError.Error() != actualErr.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead.", i+1, instanceType, testCase.expectedError.Error(), actualErr.Error())
    			}
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 89.5K bytes
    - Viewed (0)
  3. cmd/object-api-listobjects_test.go

    			if err != nil && testCase.shouldPass {
    				t.Errorf("Test %d: %s:  Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err.Error())
    			}
    			if err == nil && !testCase.shouldPass {
    				t.Errorf("Test %d: %s: Expected to fail with <ERROR> \"%s\", but passed instead", i+1, instanceType, testCase.err.Error())
    			}
    			// Failed as expected, but does it fail for the expected reason.
    			if err != nil && !testCase.shouldPass {
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 73.1K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    		if err != testCase.expectedErr {
    			t.Errorf("TestXLStorage case %d: Expected: \"%s\", got: \"%s\"", i+1, testCase.expectedErr, err)
    		}
    		if err == nil {
    			for _, expected := range testCase.expectedListDir {
    				if !strings.Contains(strings.Join(dirList, ","), expected) {
    					t.Errorf("TestXLStorage case %d: Expected the directory listing to be \"%v\", but got \"%v\"", i+1, testCase.expectedListDir, dirList)
    				}
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 66K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

          sink.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream finished")
        }
        assertFailsWith<IOException> {
          stream.getSource().read(Buffer(), 1)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream was reset: CANCEL")
        }
    
        // Verify the peer received what was expected.
        val synStream = peer.takeFrame()
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-28 23:28
    - 75.5K bytes
    - Viewed (0)
  6. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrParseExpectedExpression: {
    		Code:           "ParseExpectedExpression",
    		Description:    "Did not find the expected SQL expression.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrParseExpectedLeftParenAfterCast: {
    		Code:           "ParseExpectedLeftParenAfterCast",
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-16 07:34
    - 93K bytes
    - Viewed (1)
  7. cmd/test-utils_test.go

    		}
    	}
    
    	// expected error response when the unsigned HTTP request is not permitted.
    	unsupportedSignature := getAPIError(ErrSignatureVersionNotSupported).HTTPStatusCode
    	if rec.Code != unsupportedSignature {
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 77K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = asList("one", "two").iterator();
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator));
        assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
      }
    
      public void testGetOnlyElement_noDefault_fiveElements() {
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 54.5K bytes
    - Viewed (0)
  9. internal/s3select/select_test.go

    					t.Fatal(err)
    				}
    				t.Logf("got expected error: %v", err)
    				return
    			}
    
    			if err = s3Select.Open(newBytesRSC(testCase.input)); err != nil {
    				if !testCase.wantErr {
    					t.Fatal(err)
    				}
    				t.Logf("got expected error: %v", err)
    				return
    			} else if testCase.wantErr {
    				t.Error("did not get expected error")
    				return
    			}
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2023-12-23 07:19
    - 76.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = asList("one", "two").iterator();
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator));
        assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
      }
    
      public void testGetOnlyElement_noDefault_fiveElements() {
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 54.5K bytes
    - Viewed (0)
Back to top