Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,343 for tstring (0.11 sec)

  1. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            });
        }
    
        @Test
        public void testStringWithAllowedWhitespace() throws Exception {
            validator.validateString("test\tstring", 100, "test");
            validator.validateString("test\r\nstring", 100, "test");
            // Should pass without exception
        }
    
        @Test
        public void testValidPath() throws Exception {
            validator.validatePath("\\share\\folder\\file.txt");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/InputValidatorTest.java

            assertEquals("teststring", InputValidator.sanitizeForLogging("test\nstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\rstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\tstring"));
    
            // Test long string truncation
            String longString = "a".repeat(1100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Strings.java

      public static String nullToEmpty(@Nullable String string) {
        return Platform.nullToEmpty(string);
      }
    
      /**
       * Returns the given string if it is nonempty; {@code null} otherwise.
       *
       * @param string the string to test and possibly return
       * @return {@code string} itself if it is nonempty; {@code null} if it is empty or null
       */
      public static @Nullable String emptyToNull(@Nullable String string) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/Strings.java

            return getBytes(str, UNI_ENCODING);
        }
    
        /**
         * Encodes a string into ASCII bytes.
         *
         * @param str the string to encode
         * @return the string as bytes (ASCII)
         */
        public static byte[] getASCIIBytes(final String str) {
            return getBytes(str, ASCII_ENCODING);
        }
    
        /**
         * Encodes a string into bytes using the OEM encoding from the configuration.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/testing.md

    # Testing { #testing }
    
    Thanks to <a href="https://www.starlette.io/testclient/" class="external-link" target="_blank">Starlette</a>, testing **FastAPI** applications is easy and enjoyable.
    
    It is based on <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, which in turn is designed based on Requests, so it's very familiar and intuitive.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/testing-events.md

    # Testing Events: lifespan and startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement:
    
    {* ../../docs_src/app_testing/tutorial004.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    You can read more details about the ["Running lifespan in tests in the official Starlette documentation site."](https://www.starlette.io/lifespan/#running-lifespan-in-tests)
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:21 UTC 2025
    - 615 bytes
    - Viewed (0)
  7. docs/en/docs/how-to/testing-database.md

    # Testing a Database { #testing-a-database }
    
    You can study about databases, SQL, and SQLModel in the <a href="https://sqlmodel.tiangolo.com/" class="external-link" target="_blank">SQLModel docs</a>. 🤓
    
    There's a mini <a href="https://sqlmodel.tiangolo.com/tutorial/fastapi/" class="external-link" target="_blank">tutorial on using SQLModel with FastAPI</a>. ✨
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 540 bytes
    - Viewed (0)
  8. RELEASE.md

        *   New endpoints in tf.strings namespace: `tf.strings.join` (corresponds to
            `tf.string_join`), `tf.strings.regex_replace`, `tf.strings.to_number`
            (corresponds to `tf.string_to_number`), `tf.strings.strip` (corresponds
            to `tf.string_strip`), `tf.strings.substr`, `tf.strings.to_hash_bucket`
            (corresponds to `tf.string_to_hash_bucket`),
            `tf.strings.to_hash_bucket_fast` (corresponds to
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (1)
  9. docs/en/docs/advanced/testing-websockets.md

    # Testing WebSockets { #testing-websockets }
    
    You can use the same `TestClient` to test WebSockets.
    
    For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket:
    
    {* ../../docs_src/app_testing/tutorial002.py hl[27:31] *}
    
    /// note
    
    For more details, check Starlette's documentation for <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">testing WebSockets</a>.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 453 bytes
    - Viewed (0)
  10. docs/en/docs/advanced/testing-dependencies.md

    # Testing Dependencies with Overrides { #testing-dependencies-with-overrides }
    
    ## Overriding dependencies during testing { #overriding-dependencies-during-testing }
    
    There are some scenarios where you might want to override a dependency during testing.
    
    You don't want the original dependency to run (nor any of the sub-dependencies it might have).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top