Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for expectedResult (0.06 sec)

  1. cmd/signature-v4-utils_test.go

    		}
    		inputReq.ParseForm()
    
    		actualResult := skipContentSha256Cksum(inputReq)
    		if testCase.expectedResult != actualResult {
    			t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
    		}
    	}
    }
    
    // TestIsValidRegion - Tests validate the comparison logic for asserting whether the region from http request is valid.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. cmd/update_test.go

    	testCases := []struct {
    		filename       string
    		expectedResult string
    	}{
    		{"", ""},
    		{"/tmp/non-existing-file", ""},
    		{filename, "minio-0.1.3"},
    	}
    
    	for _, testCase := range testCases {
    		result := getHelmVersion(testCase.filename)
    
    		if testCase.expectedResult != result {
    			t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, result)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cmd/storage-rest_test.go

    			t.Fatalf("case %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(result, testCase.expectedResult) {
    				t.Fatalf("case %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    			}
    		}
    	}
    }
    
    func testStorageAPIReadAll(t *testing.T, storage StorageAPI) {
    	err := storage.AppendFile(t.Context(), "foo", "myobject", []byte("foo"))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 11.4K 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/auth-handler_test.go

    		inputReq.URL.RawQuery = q.Encode()
    		inputReq.ParseForm()
    
    		actualResult := isRequestPresignedSignatureV2(inputReq)
    		if testCase.expectedResult != actualResult {
    			t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
    		}
    	}
    }
    
    // TestIsRequestPresignedSignatureV4 - Test validates the logic for presign signature version v4 detection.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top