Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 229 for Draining (0.12 seconds)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

       */
      public void testIsWellFormed_4BytesSamples() {
        // Valid 4 byte.
        assertWellFormed(0xF0, 0xA4, 0xAD, 0xA2);
        // Bad trailing bytes
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0x7F);
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0xC0);
        // Special cases for byte2
        assertNotWellFormed(0xF0, 0x8F, 0xAD, 0xA2);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  2. cmd/object-api-putobject_test.go

    		// Put an empty object with a trailing slash
    		30: {bucketName: bucket, objName: "emptydir/", inputData: []byte{}, expectedMd5: getMD5Hash([]byte{})},
    		// Put an object inside the empty directory
    		31: {bucketName: bucket, objName: "emptydir/" + object, inputData: data, inputDataSize: int64(len(data)), expectedMd5: getMD5Hash(data)},
    		// Put the empty object with a trailing slash again (refer to Test case 30), this needs to succeed
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  3. cmd/iam-object-store.go

    // parent directory retains the trailing slash.
    func splitPath(s string, secondIndex bool) (string, string) {
    	var i int
    	if secondIndex {
    		i = findSecondIndex(s, "/")
    	} else {
    		i = strings.Index(s, "/")
    	}
    	if i == -1 {
    		return s, ""
    	}
    	// Include the trailing slash in the parent directory.
    	return s[:i+1], s[i+1:]
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/Dfs.java

             * in such a way that there can be a slash at the end of the path. This
             * causes problems matching keys in resolve() where an extra slash causes
             * a mismatch. This strips trailing slashes from all keys to eliminate
             * this problem.
             */
            int ki = key.length();
            while (ki > 1 && key.charAt(ki - 1) == '\\') {
                ki--;
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/InputValidator.java

            validateSmbPath(path);
    
            // Normalize slashes
            path = path.replace('/', '\\');
    
            // Remove redundant slashes
            path = path.replaceAll("\\\\+", "\\\\");
    
            // Remove trailing slash unless it's root
            if (path.length() > 1 && path.endsWith("\\")) {
                path = path.substring(0, path.length() - 1);
            }
    
            return path;
        }
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/util/PathValidatorTest.java

            // Test duplicate slash removal
            assertEquals("\\share\\folder", validator.validatePath("\\\\share\\\\folder"));
    
            // Test trailing slash removal
            assertEquals("\\share\\folder", validator.validatePath("\\share\\folder\\"));
        }
    
        @Test
        public void testDirectoryTraversal() throws Exception {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                assertNotNull(resp);
                assertSame(mockConfig, resp.getConfig());
            }
        }
    
        @Nested
        @DisplayName("Response Chaining Tests")
        class ResponseChainingTests {
    
            @Test
            @DisplayName("Should return next response")
            void testGetNextResponse() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/advanced-dependencies.md

    ### Background Tasks and Dependencies with `yield`, Technical Details { #background-tasks-and-dependencies-with-yield-technical-details }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertTrue(stackTraceOutput.contains("IOException"));
            assertTrue(stackTraceOutput.contains("IO error"));
        }
    
        /**
         * Test exception chaining
         */
        public void test_exceptionChaining() {
            Exception level3 = new IllegalArgumentException("Level 3 - Root cause");
            Exception level2 = new IllegalStateException("Level 2", level3);
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 20K bytes
    - Click Count (0)
  10. src/test/java/jcifs/config/DelegatingConfigurationTest.java

                configWithBaseDelegate.isUseUnicode();
                configWithBaseDelegate.getOemEncoding();
            }, "Should work with BaseConfiguration delegate");
    
            // Test chaining delegates
            DelegatingConfiguration chainedConfig = new DelegatingConfiguration(configWithBaseDelegate);
            assertDoesNotThrow(() -> {
                chainedConfig.getResponseTimeout();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
Back to Top