Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 42 for Mark (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/en/docs/management-tasks.md

    ## Mark GitHub Discussions Answers
    
    When a question in GitHub Discussions has been answered, mark the answer by clicking "Mark as answer".
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:59:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertThat(readFully(reader)).isEqualTo(string);
        assertFullyRead(reader);
    
        // reset, skip, mark, then read the rest
        reader.reset();
        assertEquals(5, reader.skip(5));
        reader.mark(Integer.MAX_VALUE);
        assertThat(readFully(reader)).isEqualTo(string.substring(5));
        assertFullyRead(reader);
    
        // reset to the mark and then read the rest
        reader.reset();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThat(expected).hasMessageThat().isEqualTo("Mark not set");
      }
    
      public void testLimit_markNotSupported() {
        InputStream lin = ByteStreams.limit(new UnmarkableInputStream(), 2);
    
        IOException expected = assertThrows(IOException.class, lin::reset);
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/async-tests.md

    你已經看過如何使用提供的 `TestClient` 來測試你的 FastAPI 應用。到目前為止,你只看到如何撰寫同步測試,沒有使用 `async` 函式。
    
    在測試中能使用非同步函式會很有用,例如當你以非同步方式查詢資料庫時。想像你想測試發送請求到 FastAPI 應用,然後在使用非同步資料庫函式庫時,驗證後端是否成功把正確資料寫入資料庫。
    
    來看看怎麼做。
    
    ## pytest.mark.anyio { #pytest-mark-anyio }
    
    若要在測試中呼叫非同步函式,測試函式本身也必須是非同步的。AnyIO 為此提供了一個好用的外掛,讓我們可以標示某些測試函式以非同步方式執行。
    
    ## HTTPX { #httpx }
    
    即使你的 FastAPI 應用使用一般的 `def` 函式而非 `async def`,它在底層仍然是個 `async` 應用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  5. fastapi/param_functions.py

                """
            ),
        ] = None,
        deprecated: Annotated[
            deprecated | str | bool | None,
            Doc(
                """
                Mark this parameter field as deprecated.
    
                It will affect the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
        ] = None,
        include_in_schema: Annotated[
            bool,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 68K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/async-tests.md

    您已经了解了如何使用 `TestClient` 测试 **FastAPI** 应用程序。但是到目前为止,您只了解了如何编写同步测试,而没有使用 `async` 异步函数。
    
    在测试中能够使用异步函数可能会很有用,比如当您需要异步查询数据库的时候。想象一下,您想要测试向 FastAPI 应用程序发送请求,然后验证您的后端是否成功在数据库中写入了正确的数据,与此同时您使用了异步的数据库的库。
    
    让我们看看如何才能实现这一点。
    
    ## pytest.mark.anyio { #pytest-mark-anyio }
    
    如果我们想在测试中调用异步函数,那么我们的测试函数必须是异步的。 AnyIO 为此提供了一个简洁的插件,它允许我们指定一些测试函数要异步调用。
    
    ## HTTPX { #httpx }
    
    即使您的 **FastAPI** 应用程序使用普通的 `def` 函数而不是 `async def` ,它本质上仍是一个 `async` 异步应用程序。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            StopwordsItem item = new StopwordsItem(1, "word");
            assertFalse(item.isDeleted());
    
            item.setNewInput("new");
            assertFalse(item.isDeleted());
    
            // Mark for deletion with empty string
            item.setNewInput("");
            assertTrue(item.isDeleted());
    
            item.setNewInput(null);
            assertFalse(item.isDeleted());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  8. fastapi/routing.py

                    """
                ),
            ] = None,
            deprecated: Annotated[
                bool | None,
                Doc(
                    """
                    Mark all *path operations* in this router as deprecated.
    
                    It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    
                    Read more about it in the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            viewHelper.setEncodeUrlLink(true);
            viewHelper.setUrlLinkEncoding("UTF-8");
            viewHelper.setOriginalHighlightTagPre("<mark>");
            viewHelper.setOriginalHighlightTagPost("</mark>");
            viewHelper.setCacheTemplateName("cache");
            viewHelper.setFacetCacheDuration(600L);
        }
    
        @Test
        public void test_TextFragment() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        /** Robots tag value indicating no following of links */
        private static final String ROBOTS_TAG_NOFOLLOW = "nofollow";
    
        /** Size of UTF-8 BOM (Byte Order Mark) in bytes */
        private static final int UTF8_BOM_SIZE = 3;
    
        /** Flag indicating whether content should be pruned */
        public boolean prunedContent = true;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
Back to Top