Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MapOf (0.04 sec)

  1. okhttp/src/test/java/okhttp3/HeadersTest.kt

      @Test fun ofMapThrowsOnEmptyName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf("" to "OkHttp").toHeaders()
        }
      }
    
      @Test fun ofMapThrowsOnBlankName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf(" " to "OkHttp").toHeaders()
        }
      }
    
      @Test fun ofMapAcceptsEmptyValue() {
        val headers = mapOf("User-Agent" to "").toHeaders()
        assertThat(headers.value(0)).isEqualTo("")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. regression-test/build.gradle.kts

        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        testInstrumentationRunnerArguments += mapOf(
          "notClass" to "org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter,org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests"
        )
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 14:46:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-compiler-configuration.kt

            CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS,
            LanguageVersionSettingsImpl(
                languageVersion = LanguageVersion.KOTLIN_1_8,
                apiVersion = ApiVersion.KOTLIN_1_8,
                analysisFlags = mapOf(
                    JvmAnalysisFlags.javaTypeEnhancementState to JavaTypeEnhancementState(
                        Jsr305Settings(ReportLevel.STRICT, ReportLevel.STRICT)
                    ) { ReportLevel.STRICT },
                )
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 26 19:59:57 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        assertThat(headers.toString()).isEqualTo("header1: valué1\n")
      }
    
      // Fails on JS, ClassCastException: Illegal cast
      @Test fun ofMapThrowsOnNull() {
        assertFailsWith<NullPointerException> {
          (mapOf("User-Agent" to null) as Map<String, String>).toHeaders()
        }
      }
    
      @Test fun toMultimapGroupsHeaders() {
        val headers =
          Headers.headersOf(
            "cache-control",
            "no-cache",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

    import model.CIBuildModel
    import model.Stage
    import model.StageName
    import model.Trigger
    import projects.StageProject
    
    val stageWithOsTriggers: Map<StageName, List<Os>> = mapOf(
        StageName.PULL_REQUEST_FEEDBACK to listOf(Os.LINUX, Os.WINDOWS),
        StageName.READY_FOR_NIGHTLY to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS),
        StageName.READY_FOR_RELEASE to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS),
    )
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 06 08:08:13 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

     * remain in their original namespace. This reduces the final Gradle distribution
     * size and makes us more conscious of which parts of a library we really need.
     */
    val keepPatterns = mapOf(
        "fastutil" to setOf(
            // For Java compilation incremental analysis
            "it.unimi.dsi.fastutil.ints.IntOpenHashSet",
            "it.unimi.dsi.fastutil.ints.IntSets",
            // For the embedded Kotlin compiler
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. android-test/build.gradle.kts

        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        testInstrumentationRunnerArguments += mapOf(
          "runnerBuilder" to "de.mannodermaus.junit5.AndroidJUnit5Builder",
          "notPackage" to "org.bouncycastle",
          "configurationParameters" to "junit.jupiter.extensions.autodetection.enabled=true"
        )
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts

        tasks.withType<Jar>().configureEach {
            archiveBaseName = moduleIdentity.baseName
            archiveVersion = moduleIdentity.version.map { it.baseVersion.version }
            manifest.attributes(
                mapOf(
                    Attributes.Name.IMPLEMENTATION_TITLE.toString() to "Gradle",
                    Attributes.Name.IMPLEMENTATION_VERSION.toString() to moduleIdentity.version.map { it.baseVersion.version }
                )
            )
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed May 01 08:59:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

        destinationFile = futurePluginVersionsPropertiesFile
    }
    val futurePluginVersionsDestDir = futurePluginVersionsPropertiesFile.map { it.asFile.parentFile }
    sourceSets.main {
        output.dir(mapOf("builtBy" to writeFuturePluginVersions), futurePluginVersionsDestDir)
    }
    configurations.runtimeElements {
        outgoing {
            variants.named("resources") {
                artifact(futurePluginVersionsDestDir) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Aug 08 14:54:27 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        url: HttpUrl,
        cookies: List<Cookie>,
      ) {
        val cookieStrings = mutableListOf<String>()
        for (cookie in cookies) {
          cookieStrings.add(cookieToString(cookie, true))
        }
        val multimap = mapOf("Set-Cookie" to cookieStrings)
        try {
          cookieHandler.put(url.toUri(), multimap)
        } catch (e: IOException) {
          Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e)
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:10:43 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top