Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for Repeat (0.24 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

        val deflater = MessageDeflater(false)
        val inflater = MessageInflater(false)
    
        val goldenValue1 = "Hello deflate!".repeat(100).encodeUtf8()
        val deflatedValue1 = deflater.deflate(goldenValue1)
        assertThat(inflater.inflate(deflatedValue1)).isEqualTo(goldenValue1)
    
        val goldenValue2 = "Hello deflate?".repeat(100).encodeUtf8()
        val deflatedValue2 = deflater.deflate(goldenValue2)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/99-minor/slices/65238.md

    The [Repeat] function returns a new slice that repeats the
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 101 bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.FailingCall
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestUtil.repeat
    import okhttp3.internal.concurrent.TaskFaker
    import okhttp3.internal.ws.WebSocketExtensions.Companion.parse
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.Pipe
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      @Test
      fun closeReasonMaximumLength() {
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
            .build(),
        )
        val clientReason = repeat('C', 123)
        val serverReason = repeat('S', 123)
        val webSocket: WebSocket = newWebSocket()
        val server = serverListener.assertOpen()
        clientListener.assertOpen()
        webSocket.close(1000, clientReason)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  5. manifests/charts/istio-control/istio-discovery/templates/NOTES.txt

    }}
    {{- range $dep, $replace := $deps }}
    {{- /* Complex logic to turn the string above into a null-safe traversal like ((.Values.global).certificates */}}
    {{- $res := tpl (print "{{" (repeat (split "." $dep | len) "(")  ".Values." (replace "." ")." $dep) ")}}") $}}
    {{- if not (eq $res "")}}
    WARNING: {{$dep|quote}} is deprecated; use {{$replace|quote}} instead.
    {{- end }}
    {{- end }}
    {{-
      $failDeps := dict
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 16:38:47 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/DispatcherCleanupTest.kt

              e: IOException,
            ) {}
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              response.close()
            }
          }
        repeat(10_000) {
          okhttp.newCall(Request.Builder().url(server.url("/")).build()).enqueue(callback)
        }
        okhttp.dispatcher.executorService.shutdown()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.TestUtil.repeat
    import okhttp3.testing.Flaky
    import okio.BufferedSink
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

        private
        fun adjustIndentation(initalJsonString: String): String {
            val indentationRegex = """^\s+""".toRegex(RegexOption.MULTILINE)
            return indentationRegex.replace(initalJsonString) { m ->
                " ".repeat(m.value.length * 2)
            }
        }
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  9. api/next/65238.txt

    pkg slices, func Repeat[$0 interface{ ~[]$1 }, $1 interface{}]($0, int) $0 #65238...
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Mar 19 21:38:37 GMT 2024
    - 82 bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

       * overflow and return null.
       */
      @Test fun overflowEncodingOversizedLabel() {
        val a1000 = "a".repeat(1000)
        val a1000MaxCodePoint = a1000 + "\udbff\udfff"
        testEncodeDecode(
          a1000MaxCodePoint,
          "xn--$a1000-nc89312g",
        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
        )
      }
    
      @Test fun invalidPunycode() {
        assertNull(Punycode.decode("xn--ls8h="))
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top