Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 581 - 590 of 853 for pos2 (0.03 seconds)

  1. guava-tests/test/com/google/common/net/HostAndPortTest.java

            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
        assertThat(hp.getHost()).isEqualTo(expectHost);
    
        // Check the post-withDefaultPort() instance (if any).
        if (!badDefaultPort) {
          try {
            int port = hp2.getPort();
            assertTrue(expectPort != -1);
            assertEquals(expectPort, port);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/testing.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    假設現在你的 **FastAPI** 應用所在的 `main.py` 有一些其他的路徑操作(path operations)。
    
    它有一個可能回傳錯誤的 `GET` 操作。
    
    它有一個可能回傳多種錯誤的 `POST` 操作。
    
    兩個路徑操作都需要一個 `X-Token` 標頭(header)。
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### 擴充的測試檔案 { #extended-testing-file }
    
    接著你可以把 `test_main.py` 更新為擴充後的測試:
    
    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)
  3. docs/zh/docs/tutorial/testing.md

    让我们继续之前的文件结构:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    假设现在包含**FastAPI** app的文件 `main.py` 有些其他**路径操作**。
    
    有个 `GET` 操作会返回错误。
    
    有个 `POST` 操作会返回一些错误。
    
    所有*路径操作* 都需要一个`X-Token` 头。
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### 扩展后的测试文件 { #extended-testing-file }
    
    然后您可以使用扩展后的测试更新`test_main.py`:
    
    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)
  4. android/guava/src/com/google/common/primitives/Bytes.java

        long length = 0;
        for (byte[] array : arrays) {
          length += array.length;
        }
        byte[] result = new byte[checkNoOverflow(length)];
        int pos = 0;
        for (byte[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
      private static int checkNoOverflow(long result) {
        checkArgument(
            result == (int) result,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/SmbResourceTest.java

                OutputStream os2 = mockResource.openOutputStream(true);
                OutputStream os3 = mockResource.openOutputStream(false, 1);
                OutputStream os4 = mockResource.openOutputStream(true, 1, 2, 3);
    
                // Then
                assertNotNull(os1, "Default output stream should not be null");
                assertNotNull(os2, "Output stream with append should not be null");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  6. internal/hash/crc.go

    // Used uint for unsigned long. Used uint32 for input arguments in order to match
    // the Go hash/crc32 package. zlib CRC32 combine (https://github.com/madler/zlib)
    // Modified for hash/crc64 by Klaus Post, 2024.
    func gf2MatrixTimes(mat []uint64, vec uint64) uint64 {
    	var sum uint64
    
    	for vec != 0 {
    		if vec&1 != 0 {
    			sum ^= mat[0]
    		}
    		vec >>= 1
    		mat = mat[1:]
    	}
    	return sum
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jan 20 14:49:07 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  7. helm-releases/minio-1.0.2.tgz

    matchLabels: app: {{ template "minio.name" . }} {{- end }} minio/templates/post-install-create-bucket-job.yaml {{- if .Values.buckets }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "minio.fullname" . }}-make-bucket-job labels: app: {{ template "minio.name" . }}-make-bucket-job chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 24 18:58:05 GMT 2021
    - 13.6K bytes
    - Click Count (0)
  8. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val method: String? by option("-X", "--request").help("Specify request command to use")
    
      val data: String? by option("-d", "--data").help("HTTP POST data")
    
      val headers: List<String>? by option("-H", "--header").help("Custom header to pass to server").multiple()
    
      val userAgent: String by option(
        "-A",
        "--user-agent",
      ).help(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/testing.md

    ```
    
    Diyelim ki **FastAPI** uygulamanızın bulunduğu `main.py` dosyasında artık başka **path operations** da var.
    
    Hata döndürebilecek bir `GET` operation'ı var.
    
    Birden fazla farklı hata döndürebilecek bir `POST` operation'ı var.
    
    Her iki *path operation* da `X-Token` header'ını gerektiriyor.
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### Genişletilmiş Test Dosyası { #extended-testing-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)
  10. docs/es/docs/tutorial/body.md

    Para declarar un **request** body, usas modelos de [Pydantic](https://docs.pydantic.dev/) con todo su poder y beneficios.
    
    /// info | Información
    
    Para enviar datos, deberías usar uno de estos métodos: `POST` (el más común), `PUT`, `DELETE` o `PATCH`.
    
    Enviar un body con un request `GET` tiene un comportamiento indefinido en las especificaciones, no obstante, es soportado por FastAPI, solo para casos de uso muy complejos/extremos.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top