- Sort Score
- Result 10 results
- Languages All
Results 681 - 690 of 710 for fun (0.97 sec)
-
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) -
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 = trueRegistered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jul 26 10:02:49 UTC 2024 - 2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
.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) -
.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) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 3.2K bytes - Viewed (1)