- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 974 for Eval (0.03 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt
} } private val backend = TaskRunner.RealBackend(threadFactory) private val taskRunner = TaskRunner(backend) private val queue = taskRunner.newQueue() @AfterEach fun tearDown() { backend.shutdown() } @Test fun test() { val t1 = System.nanoTime() / 1e6 val delays = mutableListOf(TimeUnit.MILLISECONDS.toNanos(1000), -1L)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
} companion object { private const val NO_CHUNK_YET = -1L private const val STATE_IDLE = 0 // Idle connections are ready to write request headers. private const val STATE_OPEN_REQUEST_BODY = 1 private const val STATE_WRITING_REQUEST_BODY = 2 private const val STATE_READ_RESPONSE_HEADERS = 3 private const val STATE_OPEN_RESPONSE_BODY = 4 private const val STATE_READING_RESPONSE_BODY = 5Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
} internal fun idnToAscii(host: String): String? { val bufferA = Buffer().writeUtf8(host) val bufferB = Buffer() // 1. Map, from bufferA to bufferB. while (!bufferA.exhausted()) { val codePoint = bufferA.readUtf8CodePoint() if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null } // 2. Normalize, from bufferB to bufferA. val normalized = normalizeNfc(bufferB.readUtf8())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 11.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt
class ResponseCommonTest { @Test fun peekShorterThanResponse() { val response = newResponse(responseBody("abcdef")) val peekedBody = response.peekBody(3) assertThat(peekedBody.string()).isEqualTo("abc") assertThat(response.body.string()).isEqualTo("abcdef") } @Test fun peekLongerThanResponse() { val response = newResponse(responseBody("abc")) val peekedBody = response.peekBody(6)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt
@Test fun parse() { val message = "Temporary Redirect" val version = 1 val code = 200 val statusLine = parse("HTTP/1.$version $code $message") assertThat(statusLine.message).isEqualTo(message) assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1) assertThat(statusLine.code).isEqualTo(code) } @Test fun emptyMessage() { val version = 1 val code = 503
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.5K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/ClassGraph.kt
class ClassGraph( private val keepPackages: PackagePatterns, private val unshadedPackages: PackagePatterns, private val ignorePackages: PackagePatterns, shadowPackage: String ) { private val classes: MutableMap<String, ClassDetails> = linkedMapOf() val entryPoints: MutableSet<ClassDetails> = linkedSetOf() val shadowPackagePrefix =
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 2.6K bytes - Click Count (0) -
container-tests/build.gradle.kts
id("okhttp.base-conventions") } import okhttp3.buildsupport.platform import okhttp3.buildsupport.testJavaVersion val platform = project.platform val testJavaVersion = project.testJavaVersion tasks.withType<Test> { useJUnitPlatform() val isCi = providers.environmentVariable("CI") val containerTests = providers.gradleProperty("containerTests") onlyIf("By default not in CI") { !isCi.isPresent
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Feb 05 09:17:33 GMT 2026 - 1.3K bytes - Click Count (1) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepositoryLifecycle.kt
import java.io.File class BinaryCompatibilityRepositorySetupRule(private val params: Map<String, Any>) : SetupRule { companion object { const val REPOSITORY_CONTEXT_KEY = "binaryCompatibilityRepository" } /** * Each param is a `Set<String>`. */ object Params { const val sourceRoots = "sourceRoots" const val sourceCompilationClasspath = "sourceCompilationClasspath" }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.2K bytes - Click Count (0) -
.teamcity/src/test/kotlin/BuildTypeTest.kt
} private val buildModel = CIBuildModel( projectId = "Gradle_Check", branch = VersionedSettingsBranch("master"), buildScanTags = listOf("Check"), subprojects = JsonBasedGradleSubprojectProvider(File("../.teamcity/subprojects.json")), ) @Test fun `CompileAll parameters are correct`() { val linuxPaths = listOf(Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 15 19:30:24 GMT 2026 - 5.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} companion object { @JvmField val JOURNAL_FILE = "journal" @JvmField val JOURNAL_FILE_TEMP = "journal.tmp" @JvmField val JOURNAL_FILE_BACKUP = "journal.bkp" @JvmField val MAGIC = "libcore.io.DiskLruCache" @JvmField val VERSION_1 = "1" @JvmField val ANY_SEQUENCE_NUMBER: Long = -1 @JvmField val LEGAL_KEY_PATTERN = "[a-z0-9_-]{1,120}".toRegex()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 34.7K bytes - Click Count (0)