- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 306 for ktlint (0.03 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertTrue(set.contains(1)); assertTrue(set.contains(2)); assertTrue(set.contains(3)); assertFalse(set.contains(4)); } // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE. @J2ktIncompatible public void testContains_typeMismatch() { ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.open(0, 4), integers()); assertFalse(set.contains((Object) "blah"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/SneakyThrows.java
* fact the static type of {@link Throwable} is occasionally justified even for a method with no * {@code throws} clause: Some such methods can in fact throw a checked exception (e.g., by * calling code written in Kotlin).) Typically, we want to let a {@link Throwable} from such a * method propagate untouched, just as we'd typically let it do for a non-reflective call.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/SneakyThrows.java
* fact the static type of {@link Throwable} is occasionally justified even for a method with no * {@code throws} clause: Some such methods can in fact throw a checked exception (e.g., by * calling code written in Kotlin).) Typically, we want to let a {@link Throwable} from such a * method propagate untouched, just as we'd typically let it do for a non-reflective call.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.containsExactly import assertk.assertions.isEqualTo import java.time.Instant import java.util.Date import kotlin.test.assertFailsWith import okhttp3.Headers.Companion.toHeaders import org.junit.jupiter.api.Test class HeadersJvmTest { @Test fun byteCount() { assertThat(Headers.EMPTY.byteCount()).isEqualTo(0L)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
import assertk.fail import java.io.IOException import java.net.ServerSocket import java.net.Socket import java.net.SocketException import java.util.concurrent.CompletableFuture import java.util.concurrent.TimeUnit import kotlin.test.assertFailsWith import okhttp3.Call import okhttp3.Callback import okhttp3.DelegatingServerSocketFactory import okhttp3.DelegatingSocketFactory import okhttp3.OkHttpClient import okhttp3.OkHttpClientTestRule
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
@Override public void onFailure(Throwable t) {} }, directExecutor()); assertThat(called[0]).isTrue(); } // Avoid trouble with automatic mapping between JRE and Kotlin runtime classes. static class CustomRuntimeException extends RuntimeException {} public void testCatching() throws Exception { FluentFuture<?> f =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt
* limitations under the License. */ package okhttp3.internal.http import assertk.assertThat import assertk.assertions.isEqualTo import java.net.ProtocolException import kotlin.test.assertFailsWith import okhttp3.Protocol import okhttp3.internal.http.StatusLine.Companion.parse import org.junit.jupiter.api.Test class StatusLineTest { @Test fun parse() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Challenge.kt
* limitations under the License. */ package okhttp3 import java.nio.charset.Charset import java.util.Collections.singletonMap import java.util.Locale.US import kotlin.text.Charsets.ISO_8859_1 import okhttp3.internal.unmodifiable /** * An [RFC 7235][rfc_7235] challenge. * * [rfc_7235]: https://tools.ietf.org/html/rfc7235 */ class Challenge(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 15:01:35 UTC 2025 - 3.5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
while (ms > 100) { Thread.sleep(100) if (javaNetSocket.isClosed) throw InterruptedIOException("socket closed") ms -= 100L } if (ms > 0L || ns > 0) { Thread.sleep(ms, ns.toInt()) } } override fun cancel() { delegate.cancel() } override fun close() { javaNetSocket.close() } fun awaitClosed() { closedLatch.await() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0)