Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 453 for small (0.06 sec)

  1. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

     */
    @NullUnmarked
    public class ToStringHelperBenchmark {
    
      @Param({"0", "1", "5"})
      int dataSize;
    
      @Param({"false", "true"})
      boolean omitNulls;
    
      enum Dataset {
        SMALL {
          @Override
          void addEntries(MoreObjects.ToStringHelper helper) {
            helper
                .add(SHORT_NAME, 10)
                .addValue(10L)
                .add(SHORT_NAME, 3.14f)
                .addValue(3.14d)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        }
    
        @Test
        @DisplayName("Test invalid buffer size for decoding")
        public void testInvalidBufferSize() {
            byte[] smallBuffer = new byte[4]; // Too small
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                context.decode(smallBuffer, 0, smallBuffer.length);
            });
        }
    
        @Test
        @DisplayName("Test algorithm name resolution")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

        protected void doReceiveFragment(final byte[] buf, final boolean isDirect) throws IOException {
            int off, flags, length;
    
            if (buf.length < max_recv) {
                throw new IllegalArgumentException("buffer too small");
            }
    
            if (isStart && !isDirect) { // start of new frag, do trans
                off = in.read(buf, 0, 1024);
            } else {
                off = in.readDirect(buf, 0, buf.length);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/request-files.md

    Keep in mind that this means that the whole contents will be stored in memory. This will work well for small files.
    
    But there are several cases in which you might benefit from using `UploadFile`.
    
    ## File Parameters with `UploadFile` { #file-parameters-with-uploadfile }
    
    Define a file parameter with a type of `UploadFile`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

     * interaction with {@link NdrBuffer}.  All public behaviour is exercised.
     */
    @ExtendWith(MockitoExtension.class)
    class NdrShortTest {
    
        /**
         * A small reusable buffer for encode/decode tests.
         */
        private byte[] raw;
        private NdrBuffer buf;
    
        @BeforeEach
        void setUp() {
            // 10 bytes is more than enough for the 2-byte short
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Credentials;
    
    /**
     * Tests for SmbRenewableCredentials interface.
     *
     * Since this file is an interface with a single method, we provide small
     * helper implementations to exercise expected interaction patterns and edge cases.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbRenewableCredentialsTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

            assertEscaping(xmlEscaper, "\uFFFD", ch);
          }
        }
    
        // Test _all_ allowed characters (including surrogate values).
        for (char ch = 0x20; ch <= 0xFFFD; ch++) {
          // There are a small number of cases to consider, so just do it manually.
          if (ch == '&') {
            assertEscaping(xmlEscaper, "&amp;", ch);
          } else if (ch == '<') {
            assertEscaping(xmlEscaper, "&lt;", ch);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/PurgeThumbnailJobTest.java

            assertSame(purgeThumbnailJob, result);
            // Test value was not changed
            assertEquals(originalExpiry, purgeThumbnailJob.getExpiry());
        }
    
        // Test expiry setter with small positive value
        public void test_expiry_smallPositiveValue() {
            PurgeThumbnailJob result = purgeThumbnailJob.expiry(1L);
    
            // Test method chaining
            assertSame(purgeThumbnailJob, result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DosErrorTest.java

            });
        }
    
        @Test
        @DisplayName("Interaction: consumer is invoked for each found mapping")
        void interactionWithConsumerIsAsExpected() {
            // Arrange: choose a small set of known DOS codes
            List<Integer> inputs = Arrays.asList(0x00000000, 0x00050001, 0x007b0001, 0x0BADF00D);
            @SuppressWarnings("unchecked")
            BiConsumer<Integer, Integer> consumer = mock(BiConsumer.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/index.md

    **FastAPI** provides several tools to help you deal with **Security** easily, rapidly, in a standard way, without having to study and learn all the security specifications.
    
    But first, let's check some small concepts.
    
    ## In a hurry? { #in-a-hurry }
    
    If you don't care about any of these terms and you just need to add security with authentication based on username and password *right now*, skip to the next chapters.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top