Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for expectedResult (0.16 sec)

  1. cmd/object-api-multipart_test.go

    			expectedResult := testCase.expectedResult
    			// Asserting the MaxParts.
    			if actualResult.MaxParts != expectedResult.MaxParts {
    				t.Errorf("Test %d: %s: Expected the MaxParts to be %d, but instead found it to be %d", i+1, instanceType, expectedResult.MaxParts, actualResult.MaxParts)
    			}
    			// Asserting Object Name.
    			if actualResult.Object != expectedResult.Object {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.4K bytes
    - Viewed (0)
  2. cmd/net_test.go

    	}
    
    	for _, testCase := range testCases {
    		ret := isHostIP(testCase.args)
    		if testCase.expectedResult != ret {
    			t.Fatalf("expected: %v , got: %v", testCase.expectedResult, ret)
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DosFileFilterTest.java

         * to ensure the bitwise logic is correctly implemented.
         *
         * @param filterAttributes The attributes set for the filter.
         * @param fileAttributes The attributes of the mock file.
         * @param expectedResult The expected outcome of the accept method.
         * @throws SmbException If an SMB error occurs.
         */
        @ParameterizedTest(name = "Filter: {0}, File: {1}, Expected: {2}")
        @CsvSource({
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      public void testCeilingPowerOfTwo() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInLong(expectedResult)) {
            assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> LongMath.ceilingPowerOfTwo(x));
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      public void testCeilingPowerOfTwo() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInInt(expectedResult)) {
            assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x));
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

            @ParameterizedTest
            @DisplayName("Should handle various pathConsumed values")
            @CsvSource({ "0, 0", "10, 5", "100, 50", "1000, 500", "65534, 32767" })
            void testPathConsumedValues(int rawValue, int expectedResult) {
                byte[] testBuffer = new byte[8];
                ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
                bb.putShort((short) rawValue); // pathConsumed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. cmd/endpoint_test.go

    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		}
    		localPeer := GetLocalPeer(zendpoints, "", "9000")
    		if localPeer != testCase.expectedResult {
    			t.Fatalf("Test %d: expected: %v, got: %v", i+1, testCase.expectedResult, localPeer)
    		}
    	}
    }
    
    func TestGetRemotePeers(t *testing.T) {
    	tempGlobalMinioPort := globalMinioPort
    	defer func() {
    		globalMinioPort = tempGlobalMinioPort
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/HMACT64Test.java

            md5.update(ipad);
            md5.update(data);
            byte[] innerHash = md5.digest();
    
            // Calculate outer hash
            md5.reset();
            md5.update(opad);
            byte[] expectedResult = md5.digest(innerHash);
    
            // Test HMACT64 implementation
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

          AbstractFuture<Integer> future, @Nullable Integer expectedResult)
          throws InterruptedException, TimeoutException, ExecutionException {
        assertDone(future);
        assertThat(future.isCancelled()).isFalse();
    
        assertThat(getDone(future)).isEqualTo(expectedResult);
        assertThat(getDoneFromTimeoutOverload(future)).isEqualTo(expectedResult);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. cmd/object-api-utils_test.go

    	}
    
    	for i, test := range testCases {
    		result := getCompleteMultipartMD5(test.parts)
    		if result != test.expectedResult {
    			t.Fatalf("test %d failed: expected: result=%v, got=%v", i+1, test.expectedResult, result)
    		}
    	}
    }
    
    // TestIsMinioBucketName - Tests isMinioBucketName helper function.
    func TestIsMinioMetaBucketName(t *testing.T) {
    	testCases := []struct {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top