Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 160 for captured (0.31 seconds)

  1. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            assertNull(ex.getRootCause(), "Root cause should be null by default");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
        }
    
        /**
         * Ensures the exception is thrown and captured via assertThrows with the right message.
         */
        @Test
        void assertThrowsCapturesExceptionAndMessage() {
            // Act & Assert
            SmbEndOfFileException thrown = assertThrows(SmbEndOfFileException.class, () -> {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. tests/test_dependency_after_yield_streaming.py

        """
        When a dependency with yield raises after the streaming response already started
        the 200 status code is already sent, but there's still an error in the server
        afterwards, an exception is raised and captured or shown in the server logs.
        """
        with TestClient(app, raise_server_exceptions=False) as client:
            response = client.get("/broken-session-stream")
            assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/WinErrorTest.java

            // Capture one known interaction to verify argument integrity
            ArgumentCaptor<Integer> codeCap = ArgumentCaptor.forClass(Integer.class);
            ArgumentCaptor<String> msgCap = ArgumentCaptor.forClass(String.class);
            verify(handler, atLeastOnce()).handle(codeCap.capture(), msgCap.capture());
    
            // Assert at least one captured pair is a known mapping (happy path spot check)
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            // Act
            boolean result = handle.hasCapability(cap);
    
            // Assert: verify return and the captured argument equals input
            assertTrue(result);
            ArgumentCaptor<Integer> captor = ArgumentCaptor.forClass(Integer.class);
            verify(handle, times(1)).hasCapability(captor.capture());
            assertEquals(cap, captor.getValue());
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

        @Override
        public Instant instant() {
            long elapsedNanos = System.nanoTime() - startNanos;
            return startInstant.plusNanos(elapsedNanos);
        }
    
        /**
         * Returns the wall clock time captured when this monotonic clock was initialized.
         * <p>
         * This instant serves as the base time from which all subsequent {@link #instant()}
         * calls are calculated by adding the elapsed monotonic duration. This ensures
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            ArgumentCaptor<Integer> rnCap = ArgumentCaptor.forClass(Integer.class);
    
            verify(transport).getDfsReferrals(eq(ctx), nameCap.capture(), hostCap.capture(), domCap.capture(), rnCap.capture());
            assertEquals(name, nameCap.getValue());
            assertEquals(host, hostCap.getValue());
            assertEquals(domain, domCap.getValue());
            assertEquals(rn, rnCap.getValue());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. src/arena/arena.go

    before a garbage collection delays that cycle. Less frequent cycles means
    the CPU cost of the garbage collector is incurred less frequently.
    
    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    be inefficient for allocating only small amounts of small Go values. They're
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                    fail("Expected IOException due to short-circuit");
                } catch (IOException expected) {
                    // expected
                }
    
                // Assert captured request parameters
                verify(mockTree).send(cap.capture(), any(jcifs.internal.CommonServerMessageBlockResponse.class), any(RequestParam.class));
                jcifs.internal.smb1.com.SmbComReadAndX req = cap.getValue();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. cmd/signature-v4-utils.go

    		// will default to sha256([]byte("")).
    		defaultSha256Cksum = emptySHA256
    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// We found 'X-Amz-Content-Sha256' return the captured value.
    	if ok {
    		return v[0]
    	}
    
    	// We couldn't find 'X-Amz-Content-Sha256'.
    	return defaultSha256Cksum
    }
    
    // isValidRegion - verify if incoming region value is valid with configured Region.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Nov 25 17:10:22 GMT 2024
    - 9.1K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/advanced-dependencies.md

    ### Dependencies with `yield` and `except`, Technical Details { #dependencies-with-yield-and-except-technical-details }
    
    Before FastAPI 0.110.0, if you used a dependency with `yield`, and then you captured an exception with `except` in that dependency, and you didn't raise the exception again, the exception would be automatically raised/forwarded to any exception handlers or the internal server error handler.
    
    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)
Back to Top