Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 70 for captured (0.05 seconds)

  1. android/guava/src/com/google/common/reflect/TypeCapture.java

    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.Type;
    
    /**
     * Captures the actual type of {@code T}.
     *
     * @author Ben Yu
     */
    abstract class TypeCapture<T> {
    
      /** Returns the captured type. */
      final Type capture() {
        Type superclass = getClass().getGenericSuperclass();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  2. cmd/metrics-v3-cluster-usage.go

    	dataUsageInfo, err := c.dataUsageInfo.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return nil
    	}
    
    	// data usage has not captured any data yet.
    	if dataUsageInfo.LastUpdate.IsZero() {
    		return nil
    	}
    
    	var (
    		clusterSize               uint64
    		clusterBuckets            uint64
    		clusterObjectsCount       uint64
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. tests/test_dependency_after_yield_raise.py

        When a dependency with yield raises after the yield (not in an except), the
        response is already "successfully" sent back to the client, 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")
            assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. internal/bucket/bandwidth/measurement.go

    // incrementBytes add bytes reported for a bucket.
    func (m *bucketMeasurement) incrementBytes(bytes uint64) {
    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    
    // updateExponentialMovingAverage processes the measurements captured so far.
    func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) {
    	// Calculate aggregate avg bandwidth and exp window avg
    	m.lock.Lock()
    	defer func() {
    		m.startTime = endTime
    		m.lock.Unlock()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                RecordingFilter filter = new RecordingFilter();
                filter.accept(mockFile);
                // Verify the filter stored the reference
                // assertSame may not be necessary but demonstrates captured file
                // we simply check that getPath was called
                verify(mockFile, times(1)).getPath();
            }
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  6. .teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt

            every { buildType.steps } returns steps
            every { buildType.stage } returns buildModel.stages[2]
            every {
                buildType.steps(capture(stepsCapturer))
            } answers {
                stepsCapturer.captured(steps)
                mockk()
            }
        }
    
        @Test
        fun `can apply defaults to configurations`() {
            applyDefaults(buildModel, buildType, "myTask")
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Nov 20 07:29:52 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top