Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 109 for RB (0.04 sec)

  1. src/net/protoconn_test.go

    	c.SetReadDeadline(time.Now().Add(someTimeout))
    	c.SetWriteDeadline(time.Now().Add(someTimeout))
    
    	if _, err := c.Write([]byte("TCPCONN TEST")); err != nil {
    		t.Fatal(err)
    	}
    	rb := make([]byte, 128)
    	if _, err := c.Read(rb); err != nil {
    		t.Fatal(err)
    	}
    
    	for err := range ch {
    		t.Error(err)
    	}
    }
    
    func TestUDPConnSpecificMethods(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. src/net/conn_test.go

    			c.SetReadDeadline(time.Now().Add(someTimeout))
    			c.SetWriteDeadline(time.Now().Add(someTimeout))
    
    			if _, err := c.Write([]byte("CONN AND LISTENER TEST")); err != nil {
    				t.Fatal(err)
    			}
    			rb := make([]byte, 128)
    			if _, err := c.Read(rb); err != nil {
    				t.Fatal(err)
    			}
    
    			for err := range ch {
    				t.Errorf("#%d: %v", i, err)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

        patha = tmp_path / "test.txt"
        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. src/math/big/prime.go

    		rB%29 == 0 || rB%31 == 0 || rB%41 == 0 || rB%43 == 0 || rB%47 == 0 || rB%53 == 0 {
    		return false
    	}
    
    	return x.abs.probablyPrimeMillerRabin(n+1, true) && x.abs.probablyPrimeLucas()
    }
    
    // probablyPrimeMillerRabin reports whether n passes reps rounds of the
    // Miller-Rabin primality test, using pseudo-randomly chosen bases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_files/test_tutorial001_03_an.py

        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    		r = &rb
    		name = "SOA"
    	case TypePTR:
    		var rb PTRResource
    		rb, err = unpackPTRResource(msg, off)
    		r = &rb
    		name = "PTR"
    	case TypeMX:
    		var rb MXResource
    		rb, err = unpackMXResource(msg, off)
    		r = &rb
    		name = "MX"
    	case TypeTXT:
    		var rb TXTResource
    		rb, err = unpackTXTResource(msg, off, hdr.Length)
    		r = &rb
    		name = "TXT"
    	case TypeAAAA:
    		var rb AAAAResource
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  7. docs_src/custom_response/tutorial008.py

    from fastapi.responses import StreamingResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 360 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial001_02_an_py39.py

        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py39
    def test_post_upload_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001_02.py

        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial001_02_an_py310.py

        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py310
    def test_post_upload_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top