- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 266 for trap (0.16 sec)
-
internal/rest/client_test.go
want: true, }, { name: "net.Error-unmatched", err: errors.New("something"), want: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // Wrap error n := &NetworkError{ Err: tt.err, } //nolint:gocritic if tt.target == nil { var netErrInterface net.Error if errors.As(n, &netErrInterface) != tt.want {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 1.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
Logger.getLogger(TaskRunner::class.java.name).fn() Logger.getLogger("javax.net.ssl").fn() } fun wrap(eventListener: EventListener) = EventListener.Factory { ClientRuleEventListener(eventListener, ::addEvent) } fun wrap(eventListenerFactory: EventListener.Factory) = EventListener.Factory { call -> ClientRuleEventListener(eventListenerFactory.create(call), ::addEvent) } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
Interceptor { chain: Interceptor.Chain? -> connection.set(chain!!.connection()) chain.proceed(chain.request()) }, ) .eventListenerFactory(clientTestRule.wrap(listener1)) .build() val request = Request.Builder().url(sanUrl).build() val call1 = client1.newCall(request) call1.enqueue( object : Callback { @Throws(IOException::class)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 18.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu May 23 01:50:13 UTC 2024 - 82.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6SetTests.java
import java.lang.reflect.Method; import java.util.Collection; import java.util.Set; import junit.framework.Test; /** * Tests the {@link Set} implementations of {@link java.util}, suppressing tests that trip known * OpenJDK 6 bugs. * * @author Kevin Bourrillion */ public class OpenJdk6SetTests extends TestsForSetsInJavaUtil { public static Test suite() { return new OpenJdk6SetTests().allTests(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java
import java.util.concurrent.TimeUnit; import org.checkerframework.checker.nullness.qual.Nullable; /** * An abstract {@code ScheduledExecutorService} that allows subclasses to {@linkplain * #wrapTask(Callable) wrap} tasks before they are submitted to the underlying executor. * * <p>Note that task wrapping may occur even if the task is never executed. * * @author Luke Sandberg */ @J2ktIncompatible @GwtIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcSecurityProvider.java
import jcifs.dcerpc.ndr.NdrBuffer; /** * */ public interface DcerpcSecurityProvider { /** * * @param outgoing * @throws DcerpcException */ void wrap ( NdrBuffer outgoing ) throws DcerpcException; /** * * @param incoming * @throws DcerpcException */ void unwrap ( NdrBuffer incoming ) throws DcerpcException;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.2K bytes - Viewed (0) -
docs/vi/docs/tutorial/first-steps.md
/// note Nếu bạn không biết sự khác nhau, kiểm tra [Async: *"Trong khi vội vàng?"*](../async.md#in-a-hurry){.internal-link target=_blank}. /// ### Bước 5: Nội dung trả về ```Python hl_lines="8" {!../../docs_src/first_steps/tutorial001.py!} ``` Bạn có thể trả về một `dict`, `list`, một trong những giá trị đơn như `str`, `int`,... Bạn cũng có thể trả về Pydantic model (bạn sẽ thấy nhiều hơn về nó sau).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
} }; } private static class StringSourceFactory implements CharSourceFactory { @Override public CharSource createSource(String data) throws IOException { return CharSource.wrap(data); } @Override public String getExpected(String data) { return data; } @Override public void tearDown() throws IOException {} }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
import java.util.Random; import java.util.zip.Adler32; import java.util.zip.CRC32; import java.util.zip.Checksum; /** * Benchmarks for comparing {@link Checksum}s and {@link HashFunction}s that wrap {@link Checksum}s. * * <p>Parameters for the benchmark are: * * <ul> * <li>size: The length of the byte array to hash. * </ul> * * @author Colin Decker */ public class ChecksumBenchmark {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 16:53:43 UTC 2024 - 3.4K bytes - Viewed (0)