Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for MapOf (0.02 sec)

  1. okhttp/src/jvmTest/kotlin/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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt

          Challenge("Digest", mapOf()),
          Challenge("Basic", mapOf("realm" to "myrealm")),
        )
      }
    
      @Test fun multipleSeparatorsBetweenChallenges() {
        val headers =
          Headers
            .Builder()
            .add("WWW-Authenticate", "Digest,,,, Basic ,,realm=\"myrealm\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly(
          Challenge("Digest", mapOf()),
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 16.8K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/DistributionTest.kt

                include("**/*.pom")
                include("**/*.xml")
                include("**/*.module")
            }
    
        override fun asArguments() =
            if (!localRepo.isEmpty) mapOf("integTest.localRepository" to localRepo.singleFile).asSystemPropertyJvmArguments()
            else emptyList()
    
        @Internal
        override fun getName() =
            "libsRepository"
    }
    
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Aug 18 18:02:41 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. cmd/iam-etcd-store.go

    	return ies.loadMappedPolicy(ctx, name, userType, isGroup, m)
    }
    
    func (ies *IAMEtcdStore) loadMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error {
    	var p MappedPolicy
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

        val androidCookieHandler: CookieHandler =
          object : CookieHandler() {
            override fun get(
              uri: URI,
              map: Map<String, List<String>>,
            ) = mapOf(
              "Cookie" to
                listOf(
                  "\$Version=\"1\"; " +
                    "a=\"android\";\$Path=\"/\";\$Domain=\"${serverUrl.host}\"; " +
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Mar 17 15:11:24 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PrimitiveKotlinTypeStrings.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.kotlin.dsl.internal.sharedruntime.codegen
    
    
    val primitiveTypeStrings =
        mapOf(
            "java.lang.Object" to "Any",
            "java.lang.String" to "String",
            "java.lang.Character" to "Char",
            "char" to "Char",
            "java.lang.Boolean" to "Boolean",
            "boolean" to "Boolean",
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Sep 19 08:18:50 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val immutable: Boolean = cacheControl.immutable()
        val parse: CacheControl = CacheControl.parse(Headers.of())
      }
    
      @Test @Disabled
      fun challenge() {
        val challenge = Challenge("", mapOf("" to ""))
        val scheme: String = challenge.scheme()
        val authParams: Map<String?, String> = challenge.authParams()
        val realm: String? = challenge.realm()
        val charset: Charset = challenge.charset()
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

            createPerformanceTest(
                model,
                performanceTestCoverage,
                stage,
                bucketIndex,
                "Performance tests for $testProject",
                mapOf(testProject to scenarios),
            )
    }
    
    class MultipleTestProjectBucket(
        private val projectDurations: List<TestProjectDuration>,
    ) : PerformanceTestBucket {
        override fun createPerformanceTestsFor(
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/argumentproviders/CiEnvironmentProvider.kt

        override fun asArguments(): Iterable<String> {
            return if (BuildEnvironment.isCiServer) {
                getRepoMirrorSystemProperties() +
                    getToolchainInstallationPathsProperty() +
                    mapOf(
                        "org.gradle.test.maxParallelForks" to test.maxParallelForks,
                        "org.gradle.ci.agentCount" to 2,
                        "org.gradle.ci.agentNum" to BuildEnvironment.agentNum
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Aug 19 10:37:27 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top