Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 60 for get_state (0.05 seconds)

  1. tests/test_dependency_contextmanager.py

        "sync_bg": "not set",
    }
    
    errors = []
    
    
    async def get_state():
        return state
    
    
    class AsyncDependencyError(Exception):
        pass
    
    
    class SyncDependencyError(Exception):
        pass
    
    
    class OtherDependencyError(Exception):
        pass
    
    
    async def asyncgen_state(state: dict[str, str] = Depends(get_state)):
        state["/async"] = "asyncgen started"
        yield state["/async"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            registration.setState(WitnessRegistrationState.REGISTERED);
            assertEquals(WitnessRegistrationState.REGISTERED, registration.getState());
    
            registration.setState(WitnessRegistrationState.UNREGISTERING);
            assertEquals(WitnessRegistrationState.UNREGISTERING, registration.getState());
    
            registration.setState(WitnessRegistrationState.FAILED);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            assertEquals(ChannelState.ESTABLISHED, channelInfo.getState());
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.ACTIVE);
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.FAILED);
            assertFalse(channelInfo.isHealthy());
        }
    
        @Test
        void testActivityTracking() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            channel.setState(ChannelState.ESTABLISHED);
    
            // Simulate failure
            IOException failure = new IOException("Connection lost");
            failover.handleFailure(channel, failure);
    
            // Verify channel state changed
            assertFalse(channel.isHealthy());
            assertEquals(ChannelState.FAILED, channel.getState());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          boolean isDone() {
            return (getState() & (COMPLETED | CANCELLED | INTERRUPTED)) != 0;
          }
    
          /** Checks if the state is {@link #CANCELLED} or {@link #INTERRUPTED}. */
          boolean isCancelled() {
            return (getState() & (CANCELLED | INTERRUPTED)) != 0;
          }
    
          /** Checks if the state is {@link #INTERRUPTED}. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/witness/WitnessClient.java

        /**
         * Monitors active registrations and sends heartbeats.
         */
        private void monitorRegistrations() {
            for (WitnessRegistration registration : registrations.values()) {
                if (registration.getState() == WitnessRegistrationState.REGISTERED) {
                    // Send periodic heartbeat
                    sendHeartbeat(registration);
                }
            }
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            failedChannel.setState(ChannelState.ESTABLISHED);
    
            when(mockChannelManager.getLoadBalancer()).thenReturn(mockLoadBalancer);
        }
    
        @Test
        void testHandleFailure() {
            IOException error = new IOException("Connection failed");
    
            failover.handleFailure(failedChannel, error);
    
            assertEquals(ChannelState.FAILED, failedChannel.getState());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          boolean isDone() {
            return (getState() & (COMPLETED | CANCELLED | INTERRUPTED)) != 0;
          }
    
          /** Checks if the state is {@link #CANCELLED} or {@link #INTERRUPTED}. */
          boolean isCancelled() {
            return (getState() & (CANCELLED | INTERRUPTED)) != 0;
          }
    
          /** Checks if the state is {@link #INTERRUPTED}. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  9. docs/smb3-features/06-witness-protocol-design.md

        public InetAddress getServerAddress() { return serverAddress; }
        public WitnessServiceType getServiceType() { return serviceType; }
        public WitnessRegistrationState getState() { return state; }
        public void setState(WitnessRegistrationState state) { this.state = state; }
    }
    ```
    
    ### 4.2 Witness Notification
    ```java
    package jcifs.internal.witness;
    
    import java.util.List;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 42K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/app/service/UserServiceTest.java

        }
    
        @Test
        public void test_user_state() {
            final User user = new User();
            assertNull(user.getState());
    
            user.setState("CA");
            assertEquals("CA", user.getState());
        }
    
        @Test
        public void test_user_street() {
            final User user = new User();
            assertNull(user.getStreet());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 12.8K bytes
    - Click Count (0)
Back to Top