Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 192 for bytesAt (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        val lastFrame = outFrames.removeAt(outFrames.size - 1)
        require(length < bytesOut.size - lastFrame.start)
    
        // Move everything from bytesOut into a new buffer.
        val fullBuffer = Buffer()
        bytesOut.read(fullBuffer, bytesOut.size)
    
        // Copy back all but what we're truncating.
        fullBuffer.read(bytesOut, lastFrame.start + length)
        outFrames.add(OutFrame(lastFrame.sequence, lastFrame.start, true))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        headersBuilder.add(CHUNKED_BODY_HEADER)
    
        val bytesOut = Buffer()
        while (!body.exhausted()) {
          val chunkSize = minOf(body.size, maxChunkSize.toLong())
          bytesOut.writeHexadecimalUnsignedLong(chunkSize)
          bytesOut.writeUtf8("\r\n")
          bytesOut.write(body, chunkSize)
          bytesOut.writeUtf8("\r\n")
        }
        bytesOut.writeUtf8("0\r\n") // Last chunk. Trailers follow!
        this.body = bytesOut
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_all.txt

    package a
    
    import _ "example.com/b"
    -- a/a_test.go --
    package a_test
    
    import _ "example.com/c"
    -- b/go.mod --
    module example.com/b
    
    go 1.15
    -- b/b.go --
    package b
    -- b/b_test.go --
    package b_test
    -- c/go.mod --
    module example.com/c
    
    go 1.15
    
    require example.com/d v0.1.0
    -- c/c.go --
    package c
    -- c/c_test.go --
    package c_test
    
    import _ "example.com/d"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 20 18:41:57 UTC 2021
    - 13.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_get_wild.txt

    module example.net/b
    
    go 1.16
    -- b1/b.go --
    package b
    
    -- b2/go.mod --
    module example.net/b
    
    go 1.16
    
    require example.net/a v0.2.0
    -- b2/b.go --
    package b
    -- b2/b_test.go --
    package b_test
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_websockets/test_tutorial002_an.py

    def test_websocket_no_credentials():
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws"):
                pytest.fail(
                    "did not raise WebSocketDisconnect on __enter__"
                )  # pragma: no cover
    
    
    def test_websocket_invalid_data():
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCrossVersionSpec.groovy

            when:
            launchTests(testDescriptors("example.MyTest"));
            then:
            assertTaskExecuted(":test")
            assertTaskExecuted(":secondTest")
    
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":test")
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":secondTest")
            assertTestExecuted(className: "example.MyTest", methodName: "foo2", task: ":test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_get_patchbound.txt

    module example.net/b
    
    go 1.16
    
    require example.net/a v0.1.0
    -- b10/b.go --
    package b
    -- b10/b_test.go --
    package b_test
    
    import _ "example.net/a"
    
    -- b11/go.mod --
    module example.net/b
    
    go 1.16
    
    require example.net/a v0.2.0
    -- b11/b.go --
    package b
    -- b11/b_test.go --
    package b_test
    
    import _ "example.net/a"
    
    -- b12/go.mod --
    module example.net/b
    
    go 1.16
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressCrossVersionSpec.groovy

            def testClass = events.operation("Test class example.MyTest")
            testClass.descriptor.jvmTestKind == JvmTestKind.SUITE
            testClass.descriptor.name == 'example.MyTest'
            testClass.descriptor.displayName == 'Test class example.MyTest'
            testClass.descriptor.suiteName == 'example.MyTest'
            testClass.descriptor.className == 'example.MyTest'
            testClass.descriptor.methodName == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cover_dot_import.txt

    ! stdout '[^0-9]0\.0%'
    
    -- go.mod --
    module coverdot
    
    go 1.16
    -- a/a.go --
    package a
    
    func F() {}
    -- b/b.go --
    package b
    
    import . "coverdot/a"
    
    func G() { F() }
    -- b/b_test.go --
    package b
    
    import "testing"
    
    func TestG(t *testing.T) {
    	G()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 379 bytes
    - Viewed (0)
  10. tests/test_ambiguous_params.py

    import pytest
    from fastapi import Depends, FastAPI, Path
    from fastapi.param_functions import Query
    from fastapi.testclient import TestClient
    from fastapi.utils import PYDANTIC_V2
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    def test_no_annotated_defaults():
        with pytest.raises(
            AssertionError, match="Path parameters cannot have a default value"
        ):
    
            @app.get("/items/{item_id}/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top