Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 45 for 43 (0.39 seconds)

  1. docs/zh-hant/docs/advanced/testing-events.md

    # 測試事件:lifespan 與 startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    當你需要在測試中執行 lifespan(生命週期)時,你可以使用 TestClient 並搭配 with 陳述式:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    你可以閱讀更多細節:[在測試中執行 lifespan](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)(Starlette 官方文件)。
    
    對於已棄用的 `startup` 和 `shutdown` 事件,你可以這樣使用 TestClient:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 618 bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/hash/FarmHashFingerprint64.java

        long y = rotateRight(a + b, 43) + rotateRight(c, 30) + d;
        long z = hashLength16(y, a + rotateRight(b + K2, 18) + c, mul);
        long e = load64(bytes, offset + 16) * mul;
        long f = load64(bytes, offset + 24);
        long g = (y + load64(bytes, offset + length - 32)) * mul;
        long h = (z + load64(bytes, offset + length - 24)) * mul;
        return hashLength16(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/testing-events.md

    # 이벤트 테스트: 라이프스팬 및 시작 - 종료 { #testing-events-lifespan-and-startup-shutdown }
    
    테스트에서 `lifespan`을 실행해야 하는 경우, `with` 문과 함께 `TestClient`를 사용할 수 있습니다:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    ["공식 Starlette 문서 사이트에서 테스트에서 라이프스팬 실행하기."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)에 대한 자세한 내용을 더 읽을 수 있습니다.
    
    더 이상 권장되지 않는 `startup` 및 `shutdown` 이벤트의 경우, 다음과 같이 `TestClient`를 사용할 수 있습니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 741 bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/testing-events.md

    # イベントのテスト: lifespan と startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    テストで `lifespan` を実行する必要がある場合は、`with` 文と併用して `TestClient` を使用できます:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    より詳しい内容は、[公式 Starlette ドキュメントの「テストでの lifespan の実行」](https://www.starlette.dev/lifespan/#running-lifespan-in-tests) を参照してください。
    
    非推奨の `startup` および `shutdown` イベントについては、次のように `TestClient` を使用できます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 724 bytes
    - Click Count (0)
  5. docs/en/docs/advanced/testing-events.md

    When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement:
    
    {* ../../docs_src/app_testing/tutorial004_py310.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.dev/lifespan/#running-lifespan-in-tests)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 628 bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/testing-events.md

    # 测试事件:lifespan 和 startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    当你需要在测试中运行 `lifespan` 时,可以将 `TestClient` 与 `with` 语句一起使用:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    你可以在[官方 Starlette 文档站点的“在测试中运行 lifespan”](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)阅读更多细节。
    
    对于已弃用的 `startup` 和 `shutdown` 事件,可以按如下方式使用 `TestClient`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 622 bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        r.nextBytes(ba1);
        ba2 = Arrays.copyOf(ba1, ba1.length);
        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/util/Hexdump.java

    Shinsuke Sugaya <******@****.***> 1755307968 +0900
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        }
        for (int i = 0; i < 37; i++) {
          counter2.recordLoadException(i);
          totalLoadTime += i;
        }
        for (int i = 0; i < 41; i++) {
          counter2.recordMisses(1);
        }
        for (int i = 0; i < 43; i++) {
          counter2.recordEviction();
        }
    
        counter1.incrementBy(counter2);
        assertThat(counter1.snapshot()).isEqualTo(new CacheStats(38, 60, 44, 54, totalLoadTime, 66));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  10. docs/zh/docs/advanced/websockets.md

    但是,在本示例中,我们将使用一个非常简单的 HTML 文档,其中包含一些 JavaScript,全部放在一个长字符串中。
    
    当然,这并不是最优的做法,您不应该在生产环境中使用它。
    
    在生产环境中,您应该选择上述任一选项。
    
    但这是一种专注于 WebSockets 的服务器端并提供一个工作示例的最简单方式:
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[2,6:38,41:43] *}
    
    ## 创建 `websocket` { #create-a-websocket }
    
    在您的 **FastAPI** 应用程序中,创建一个 `websocket`:
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[1,46:47] *}
    
    /// note | 技术细节
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top