Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 129 for calculation (0.06 sec)

  1. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                assertEquals(2500L * 16 * 1024, fileFsFullSizeInfo.getFree());
            }
        }
    
        @Nested
        @DisplayName("Capacity and Free Space Calculation Tests")
        class CapacityCalculationTests {
    
            @Test
            @DisplayName("Should calculate capacity correctly")
            void shouldCalculateCapacityCorrectly() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/AllocInfoTest.java

                }
            }
        }
    
        @Nested
        @DisplayName("Usage Pattern Tests")
        class UsagePatternTests {
    
            @Test
            @DisplayName("Should support percentage calculation pattern")
            void shouldSupportPercentageCalculationPattern() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(1000L, 250L);
    
                // When - calculate percentage free
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessClient.java

        private static final long BASE_POLL_INTERVAL = 1000;
        private static final long BASE_ERROR_DELAY = 1000;
        private static final int MAX_FAILURE_LIMIT = 5; // Limit failures for backoff calculation
    
        private final InetAddress witnessServer;
        private final int port;
        private final CIFSContext context;
        private final ConcurrentHashMap<String, WitnessRegistration> registrations;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            });
    
            assertTrue(exception.getMessage().contains("Security buffer extends beyond available data"));
        }
    
        /**
         * Test integer overflow protection in security buffer offset calculation.
         */
        @Test
        public void testSecurityBufferIntegerOverflow() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. docs/SMB3_IMPLEMENTATION_PLAN.md

    └── ChannelFailover.java         - Channel failure handling
    ```
    
    #### 3.2 Implementation Tasks
    - [ ] Implement FSCTL_QUERY_NETWORK_INTERFACE_INFO
    - [ ] Create channel binding hash calculation
    - [ ] Implement channel establishment protocol
    - [ ] Add request distribution algorithm
    - [ ] Create channel synchronization mechanism
    - [ ] Implement channel failure detection
    - [ ] Add automatic channel recovery
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

        }
    
        @Test
        @DisplayName("Test readDataWireFormat with converter offset")
        void testReadDataWireFormatWithConverter() throws Exception {
            // Set converter to test offset calculation
            int converterValue = 100;
            setConverter(response, converterValue);
            setNumEntries(response, 1);
    
            String shareName = "TEST";
            String remark = "Test remark";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
        @DisplayName("Should verify size8 alignment calculation")
        void testSize8Alignment() throws Exception {
            // Given - Various path lengths to test alignment
            String[] paths = { "\\\\a\\b", // Short path
                    "\\\\server\\share", // Medium path
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                // Negative values will be cast to unsigned when encoded
                assertEquals(4 + 2 * path.length(), buffer.size());
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeTests {
    
            @ParameterizedTest
            @DisplayName("Should calculate correct size for various path lengths")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_largeVarargs_compute_doubleCollection() {
        int scale = Integer.MAX_VALUE;
        int otherIndex = (Integer.MAX_VALUE - 1) / 3; // this divides exactly
        // For the otherIndex calculation, we have q=Integer.MAX_VALUE, k=(Integer.MAX_VALUE-1)/3, and
        // N=16. Therefore k*(N-1)/q = 5-5/Integer.MAX_VALUE, which has floor 4 and fractional part
        // (1-5/Integer.MAX_VALUE).
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_largeVarargs_compute_doubleCollection() {
        int scale = Integer.MAX_VALUE;
        int otherIndex = (Integer.MAX_VALUE - 1) / 3; // this divides exactly
        // For the otherIndex calculation, we have q=Integer.MAX_VALUE, k=(Integer.MAX_VALUE-1)/3, and
        // N=16. Therefore k*(N-1)/q = 5-5/Integer.MAX_VALUE, which has floor 4 and fractional part
        // (1-5/Integer.MAX_VALUE).
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top