Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 3,073 for patch (0.03 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

            }
    
            @Test
            @DisplayName("Should get path")
            void testGetPath() {
                String path = "folder\\subfolder\\file.txt";
    
                // Test with mock
                when(mockReferralData.getPath()).thenReturn(path);
                assertEquals(path, mockReferralData.getPath());
                verify(mockReferralData, times(1)).getPath();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

            } else {
                // Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
                expected = NtStatus.NT_STATUS_UNSUCCESSFUL;
            }
            assertEquals(expected, ex.getNtStatus(), "Status should match mapping or fallback");
        }
    
        /**
         * Verify that root causes are stored and returned correctly.
         */
        @Test
        @DisplayName("Root cause propagation")
        void testRootCausePropagation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/DateFormatting.kt

      if (isEmpty()) return null
    
      val position = ParsePosition(0)
      var result = STANDARD_DATE_FORMAT.get().parse(this, position)
      if (position.index == length) {
        // STANDARD_DATE_FORMAT must match exactly; all text must be consumed, e.g. no ignored
        // non-standard trailing "+01:00". Those cases are covered below.
        return result
      }
      synchronized(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. cmd/metacache-set.go

    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	i := 0
    	for {
    		partKey := fmt.Sprintf("%s-metacache-part-%d", ReservedMetadataPrefixLower, i)
    		v, ok := fi.Metadata[partKey]
    		if !ok {
    			o.debugln("no match in metadata, waiting")
    			return -1, io.ErrUnexpectedEOF
    		}
    		err := json.Unmarshal([]byte(v), &tmp)
    		if !ok {
    			bugLogIf(context.Background(), err)
    			return -1, err
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/RangeTest.java

          fail();
        } catch (IllegalStateException expected) {
        }
        try {
          range.lowerBoundType();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      private static void assertUnboundedAbove(Range<Integer> range) {
        assertFalse(range.hasUpperBound());
        try {
          range.upperEndpoint();
          fail();
        } catch (IllegalStateException expected) {
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. cmd/bitrot.go

    type BitrotVerifier struct {
    	algorithm BitrotAlgorithm
    	sum       []byte
    }
    
    // BitrotAlgorithmFromString returns a bitrot algorithm from the given string representation.
    // It returns 0 if the string representation does not match any supported algorithm.
    // The zero value of a bitrot algorithm is never supported.
    func BitrotAlgorithmFromString(s string) (a BitrotAlgorithm) {
    	for alg, name := range bitrotAlgorithms {
    		if name == s {
    			return alg
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

        }
    
        private void assertContentType(final String expect, final String path, final String name) throws IOException {
            final MimeTypeHelper mimeTypeHelper = container.getComponent("mimeTypeHelper");
            if (path != null) {
                try (final InputStream is = ResourceUtil.getResourceAsStream(path)) {
                    assertEquals(expect, mimeTypeHelper.getContentType(is, name));
                }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    Because it's a Python exception, you don't `return` it, you `raise` it.
    
    This also means that if you are inside a utility function that you are calling inside of your *path operation function*, and you raise the `HTTPException` from inside of that utility function, it won't run the rest of the code in the *path operation function*, it will terminate that request right away and send the HTTP error from the `HTTPException` to the client.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java

                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
                assertTrue(e.getMessage().contains("non.existent.property"));
            }
    
            try {
                emptyEnv.is("non.existent.boolean");
                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            System.arraycopy(err, 0, buf, bodyStart + 8, bc);
    
            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0);
    
            // When error path is taken, no blob should be parsed
            assertNull(resp.getBlob(), "Blob should be null on error path");
            assertNotNull(resp.getErrorData(), "Error data should be present");
            assertArrayEquals(err, resp.getErrorData());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top