Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 995 for test_ (0.03 seconds)

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

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java

            );
    
            Metadata.Builder mb = Metadata.builder();
            for (int i = 1; i <= numIndices; i++) {
                mb.put(
                    IndexMetadata.builder("test_" + i)
                        .settings(Settings.builder().put("index.version.created", Version.CURRENT))
                        .numberOfShards(numShards)
                        .numberOfReplicas(numReplicas)
                );
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Apr 13 08:33:41 GMT 2021
    - 6.7K bytes
    - Click Count (0)
  2. CLAUDE.md

    # Run specific test class
    mvn test -Dtest=CurlTest
    mvn test -Dtest=CurlRequestTest
    mvn test -Dtest=CurlResponseTest
    mvn test -Dtest=CurlExceptionTest
    
    # Run I/O layer tests
    mvn test -Dtest=ContentCacheTest
    mvn test -Dtest=ContentOutputStreamTest
    mvn test -Dtest=IOIntegrationTest
    ```
    
    ### Code Quality
    ```bash
    # Format code
    mvn formatter:format
    
    # Check/update license headers
    mvn license:check
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Jan 08 07:28:24 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  3. internal/bucket/replication/rule_test.go

    			expectedResult: true,
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test_%d", i+1), func(t *testing.T) {
    			cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil {
    				t.Fatalf("Got unexpected error: %v", err)
    			}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/testing.md

    ///
    
    /// tip
    
    If you want to call `async` functions in your tests apart from sending requests to your FastAPI application (e.g. asynchronous database functions), have a look at the [Async Tests](../advanced/async-tests.md) in the advanced tutorial.
    
    ///
    
    ## Separating tests { #separating-tests }
    
    In a real application, you probably would have your tests in a different file.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  5. internal/bucket/replication/replication_test.go

    			prefix:         "testdir/",
    			expectedNonRec: true,
    			expectedRec:    true,
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test_%d", i+1), func(t *testing.T) {
    			cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil {
    				t.Fatalf("Got unexpected error: %v", err)
    			}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.4K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/testing.md

    **FastAPI** 提供了和 `starlette.testclient` 一样的 `fastapi.testclient`,只是为了方便开发者。但它直接来自Starlette。
    
    ///
    
    /// tip | 提示
    
    除了发送请求之外,如果你还想测试时在FastAPI应用中调用 `async` 函数(例如异步数据库函数), 可以在高级教程中看下 [Async Tests](../advanced/async-tests.md) 。
    
    ///
    
    ## 分离测试 { #separating-tests }
    
    在实际应用中,你可能会把你的测试放在另一个文件里。
    
    您的**FastAPI**应用程序也可能由一些文件/模块组成等等。
    
    ### **FastAPI** app 文件 { #fastapi-app-file }
    
    假设你有一个像[更大的应用](bigger-applications.md)中所描述的文件结构:
    
    ```
    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)
  7. docs/zh-hant/docs/tutorial/testing.md

    **FastAPI** 為了方便開發者,也提供與 `starlette.testclient` 相同的 `fastapi.testclient`。但它其實直接來自 Starlette。
    
    ///
    
    /// tip
    
    如果你想在測試中呼叫其他 `async` 函式,而不只是對 FastAPI 應用發送請求(例如非同步的資料庫函式),請參考進階教學中的[非同步測試](../advanced/async-tests.md)。
    
    ///
    
    ## 分離測試 { #separating-tests }
    
    在真實專案中,你大概會把測試放在不同的檔案中。
    
    你的 **FastAPI** 應用也可能由多個檔案/模組組成,等等。
    
    ### **FastAPI** 應用檔案 { #fastapi-app-file }
    
    假設你的檔案結構如[更大型的應用](bigger-applications.md)所述:
    
    ```
    .
    ├── app
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/testing.md

    Crie funções com um nome que comece com `test_` (essa é a convenção padrão do `pytest`).
    
    Use o objeto `TestClient` da mesma forma que você faz com `httpx`.
    
    Escreva instruções `assert` simples com as expressões Python padrão que você precisa verificar (novamente, `pytest` padrão).
    
    {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *}
    
    /// tip | Dica
    
    Observe que as funções de teste são `def` normais, não `async def`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. internal/bucket/lifecycle/lifecycle_test.go

    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test_%d", i+1), func(t *testing.T) {
    			lc, err := ParseLifecycleConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil {
    				t.Fatalf("Got unexpected error: %v", err)
    			}
    			// To ensure input lifecycle configurations are valid
    			if err := lc.Validate(lock.Retention{}); err != nil {
    				t.Fatalf("Invalid test case: %d %v", i+1, err)
    			}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 55.5K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/app_a_py310/test_main.py hl[3] *}
    
    ...ve test kodunu da öncekiyle aynı şekilde yazabilirsiniz.
    
    ## Test Etme: Genişletilmiş Örnek { #testing-extended-example }
    
    Şimdi bu örneği genişletelim ve farklı parçaların nasıl test edildiğini görmek için daha fazla detay ekleyelim.
    
    ### Genişletilmiş **FastAPI** Uygulama Dosyası { #extended-fastapi-app-file }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 6.3K bytes
    - Click Count (0)
Back to Top