Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 710 for fun (2.5 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

     * OkHttp.
     *
     * https://square.github.io/okhttp/
     */
    class OkHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test fun get() {
        server.enqueue(MockResponse(body = "hello, OkHttp"))
    
        val client = OkHttpClient()
    
        val request =
          Request
            .Builder()
            .url(server.url("/"))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt

        abstract val providers: ProviderFactory
    
        val gitCommitId = git("rev-parse", "HEAD")
        val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD")
    
        @Suppress("UnstableApiUsage")
        private
        fun git(vararg args: String): Provider<String> {
            val projectDir = parameters.rootProjectDir.asFile.get()
            val execOutput = providers.exec {
                workingDir = projectDir
                isIgnoreExitValue = true
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jul 26 10:02:49 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

    import okhttp3.tls.decodeCertificatePem
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    /**
     * Test for new Let's Encrypt Root Certificate.
     */
    @Tag("Remote")
    class LetsEncryptClientTest {
      @Test fun get() {
        // These tests wont actually run before Android 8.0 as per
        // https://github.com/mannodermaus/android-junit5
        // Raised https://github.com/mannodermaus/android-junit5/issues/228 to reevaluate
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  4. okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt

          .appendValue(SECOND_OF_MINUTE, 2)
          .optionalStart()
          .appendFraction(NANO_OF_SECOND, 3, 3, true)
          .toFormatter()
    
      private val offset = ZoneOffset.systemDefault()
    
      override fun format(record: LogRecord): String {
        val message = formatMessage(record)
    
        val time = Instant.ofEpochMilli(record.millis).atZone(offset)
    
        return if (record.thrown != null) {
          val sw = StringWriter(4096)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.1K bytes
    - Viewed (1)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskLoggerTest.kt

     */
    package okhttp3.internal.concurrent
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import org.junit.jupiter.api.Test
    
    class TaskLoggerTest {
      @Suppress("ktlint")
      @Test fun formatTime() {
        assertThat(formatDuration(-3_499_999_999L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-3_000_000_000L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-2_500_000_000L)).isEqualTo(" -3 s ")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. mockwebserver/README.md

      assertEquals("/v1/chat/messages/3", request3.getUrl().encodedPath());
    
      // Shut down the server. Instances cannot be reused.
      server.close();
    }
    ```
    
    ### Kotlin
    ```kotlin
    fun test() {
      // Create a MockWebServer. These are lean enough that you can create a new
      // instance for every unit test.
      val server = MockWebServer()
    
      // Schedule some responses.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 21:39:59 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. .teamcity/src/test/kotlin/SplitBucketTest.kt

        val subprojects: List<Subproject>,
    ) : SubprojectBucket
    
    data class LargeSubprojectSplit(
        val subproject: Subproject,
        val split: Int,
    ) : SubprojectBucket
    
    class SplitBucketTest {
        @Test
        fun testUnbalancedBuckets() {
            val subprojects =
                LinkedList(
                    listOf(
                        Subproject("a", 20),
                        Subproject("b", 19),
                        Subproject("c", 5),
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/util/AdHocPerformanceScenario.kt

                        ).joinToString(separator = " ")
                }
                removeSubstDirOnWindows(os)
                checkCleanM2AndAndroidUserHome(os)
            }
        })
    
    private fun ParametrizedWithType.profilerParam(defaultProfiler: String) {
        text(
            "profiler",
            defaultProfiler,
            display = ParameterDisplay.PROMPT,
            allowEmpty = false,
            description =
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Dec 22 07:15:16 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dataclasses/test_tutorial003.py

            {
                "name": "Breaters",
                "items": [
                    {
                        "name": "Island In The Moon",
                        "description": "A place to be playin' and havin' fun",
                    },
                    {"name": "Holy Buddies", "description": None},
                ],
            },
            {
                "name": "System of an Up",
                "items": [
                    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

       * the inbound request was truncated, this exception will be non-null.
       */
      public val failure: IOException? = null,
    ) {
      public val requestLine: String
        get() = "$method $target $version"
    
      public override fun toString(): String = requestLine
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 3.2K bytes
    - Viewed (1)
Back to top