Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,270 for cases (0.02 sec)

  1. cmd/post-policy_test.go

    		}
    	}
    
    	// Test cases for signature-V4.
    	testCasesV4 := []struct {
    		objectName         string
    		data               []byte
    		expectedHeaders    map[string]string
    		expectedRespStatus int
    		accessKey          string
    		secretKey          string
    		malformedBody      bool
    	}{
    		// Success case.
    		{
    			objectName:         "test",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Fingerprint2011.java

     * fingerprint at 4.0 microseconds and md5 at 4.5 microseconds.
     *
     * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
     * to unsigned arithmetic in all cases except:
     *
     * <ul>
     *   <li>comparisons (signed values can be negative)
     *   <li>division (avoided here)
     *   <li>shifting (right shift must be unsigned)
     * </ul>
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicInteger;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Security-focused test cases for BufferCache to verify buffer overflow protection.
     */
    public class BufferCacheSecurityTest {
    
        /**
         * Test that buffer allocation validates size to prevent overflow.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

         *
         * <p>{@link #getModuleName(Path)} is preferred when only the module name is desired,
         * because a name may be present even if the descriptor is absent. This method is for
         * cases when more information is desired, such as the set of exported packages.</p>
         *
         * @param dependency path to the dependency for which to get the module name
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 05 14:29:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

    import static java.util.Objects.requireNonNull;
    
    /**
     * Factory methods for creating different types of sources.
     * <p>
     * This class provides specialized source implementations for different use cases:
     * <ul>
     *   <li>Path sources - simple access to file content</li>
     *   <li>Build sources - POM files being actively built by Maven</li>
     *   <li>Resolved sources - POMs resolved from repositories</li>
     * </ul>
     *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                fail("setObject should handle different object types: " + e.getMessage());
            }
        }
    
        public void test_error_handling_edge_cases() {
            // Test error handling with edge cases
            try {
                // Test with extreme status codes
                WebApiUtil.setError(-1, "Negative status code");
                WebApiUtil.setError(0, "Zero status code");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

                assertThrows(IOException.class, () -> {
                    throw exception;
                });
            }
        }
    
        @Nested
        @DisplayName("Edge Cases")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle very long messages")
            void testVeryLongMessage() {
                StringBuilder longMessage = new StringBuilder();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SecurityBlobTest.java

        }
    
        // Verifies that toString() formats bytes as lower-case hex with zero-padding
        @ParameterizedTest(name = "toString renders hex for {0}")
        @MethodSource("hexCases")
        @DisplayName("toString() renders lower-case hex with zero-padding")
        void toString_rendersHex(byte[] input, String expected) {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

     * create a lightweight concrete subclass only to exercise the inherited
     * behaviour. The tests cover flag manipulation, byte‑buffer operations and
     * static helpers. Edge cases such as null or short arrays and negative
     * values are verified to ensure proper exception handling and byte
     * conversion.
     */
    @ExtendWith(MockitoExtension.class)
    class NtlmMessageTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/AsciiTest.java

        // may change and break assumptions in this test [*]. This is not a bug in the implementation of
        // Ascii.equalsIgnoreCase(), but it is a signal that its documentation may need updating as
        // regards edge cases.
    
        // The Unicode point {@code 00df} is the lowercase form of sharp-S (ß), whose uppercase is "SS".
        assertEquals("PASSWORD", "pa\u00dfword".toUpperCase()); // [*]
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top