- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 928 for val2 (0.05 seconds)
-
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt
import okio.Buffer class MainTest { @Test fun simple() { val request = fromArgs("http://example.com").createRequest() assertThat(request.method).isEqualTo("GET") assertThat(request.url.toString()).isEqualTo("http://example.com/") assertThat(request.body).isNull() } @Test @Throws(IOException::class) fun put() { val request = fromArgs("-X", "PUT", "-d", "foo", "http://example.com").createRequest()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
import org.junit.jupiter.api.extension.RegisterExtension class WebSocketWriterTest { private val data = Buffer() private val random = Random(0) /** * Check all data as verified inside of the test. We do this in an AfterEachCallback so that * exceptions thrown from the test do not cause this check to fail. */ @RegisterExtension val noDataLeftBehind = AfterEachCallback { context: ExtensionContext ->Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 9.3K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt
import java.io.File class KotlinSourceParser { data class ParsedKotlinFiles( val ktFiles: List<KtFile>, private val disposable: Disposable ) : AutoCloseable { override fun close() { Disposer.dispose(disposable) } } private val messageCollector: MessageCollectorCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Sep 16 08:22:33 GMT 2025 - 3.9K bytes - Click Count (0) -
mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt
import org.junit.Test import org.junit.runner.Description import org.junit.runners.model.Statement class MockWebServerRuleTest { @Test fun statementStartsAndStops() { val rule = MockWebServerRule() val called = AtomicBoolean() val statement: Statement = rule.apply( object : Statement() { override fun evaluate() { called.set(true) rule.server .url("/")Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt
*/ class RealConnection internal constructor( val taskRunner: TaskRunner, val connectionPool: RealConnectionPool, override val route: Route, /** The low-level TCP socket. */ private val rawSocket: JavaNetSocket, /** * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket] * itself if this connection does not use SSL. */ private val javaNetSocket: JavaNetSocket,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 14.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} @Throws(IOException::class) fun openResponseBody(response: Response): ResponseBody { try { val contentType = response.header("Content-Type") val contentLength = codec.reportedContentLength(response) val rawSource = codec.openResponseBodySource(response) val source = ResponseBodySource( delegate = rawSource, contentLength = contentLength,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts
id("codenarc") id("net.ltgt.errorprone") id("net.ltgt.nullaway") } open class ErrorProneProjectExtension( val disabledChecks: ListProperty<String>, val nullawayEnabled: Property<Boolean> ) open class ErrorProneSourceSetExtension( val enabled: Property<Boolean> ) val errorproneExtension = project.extensions.create<ErrorProneProjectExtension>( "errorprone", objects.listProperty<String>(),
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Oct 01 11:57:43 GMT 2025 - 9.3K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt
class CompressionInterceptorTest { @RegisterExtension val clientTestRule = OkHttpClientTestRule() val source = Buffer().apply { write("Hello World".encodeUtf8()) } as Source @Test fun emptyDoesntChangeRequestOrResponse() { val empty = CompressionInterceptor() val client = clientTestRule .newClientBuilder() .addInterceptor(empty)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt
} @Test fun removePathSegment() { val base = parse("http://host/a/b/c") val url = base .newBuilder() .removePathSegment(0) .build() assertThat(url.encodedPath).isEqualTo("/b/c") } @Test fun removePathSegmentDoesntRemovePath() { val base = parse("http://host/a/b/c") val url = base .newBuilder()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Aug 04 07:38:48 GMT 2025 - 69.9K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild.cross-version-tests.gradle.kts
} } } val releasedVersions = gradleModule.identity.releasedVersions.orNull fun createQuickFeedbackTasks() { val testType = TestType.CROSSVERSION val defaultExecuter = "embedded" val prefix = testType.prefix testType.executers.forEach { executer -> val taskName = "$executer${prefix.capitalize()}Test"Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Sep 05 02:31:24 GMT 2025 - 4.5K bytes - Click Count (0)