- Sort Score
- Result 10 results
- Languages All
Results 741 - 750 of 2,385 for When (0.06 sec)
-
tests/error_translator_test.go
package tests_test import ( "errors" "testing" "gorm.io/gorm" "gorm.io/gorm/utils/tests" ) func TestDialectorWithErrorTranslatorSupport(t *testing.T) { // it shouldn't translate error when the TranslateError flag is false translatedErr := errors.New("translated error") untranslatedErr := errors.New("some random error") db, _ := gorm.Open(tests.DummyDialector{TranslatedErr: translatedErr}) err := db.AddError(untranslatedErr)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
public class AbstractListTester<E extends @Nullable Object> extends AbstractCollectionTester<E> { /* * Previously we had a field named list that was initialized to the value of * collection in setUp(), but that caused problems when a tester changed the * value of list or collection but not both. */ protected final List<E> getList() { return (List<E>) collection; } /** * {@inheritDoc} *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance.go
SkipRebalancing: true, // make sure we skip the decommissioned pool NoAuditLog: true, }) // This can happen when rebalance stop races with ongoing rebalance workers. // These rebalance failures can be ignored. if err != nil { // This can happen when rebalance stop races with ongoing rebalance workers. // These rebalance failures can be ignored.Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Sep 04 20:47:24 UTC 2025 - 28.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.junit.jupiter.api.Test; import jcifs.Configuration; class AvSingleHostTest { /** * Test constructor AvSingleHost(byte[] raw). * Should correctly parse the raw bytes. */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java
indexUpdater.destroy(); assertTrue(crawler.stopCalled); } // Test destroy when crawling is finished public void test_destroy_finished() { indexUpdater.finishCrawling = true; indexUpdater.destroy(); // finishCrawling should be set when max empty list count is exceeded // In test environment this may not work as expectedRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 33K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
// Create a mock stream that returns exactly -1 on first read (special case) when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(-1); // Immediate EOF byte[] buffer = new byte[10]; // The readn method will return 0 when stream returns -1 // So this should still throw IOException, not return -1
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
// Create a mock NetbiosName that is not a Name instance NetbiosName mockNetbiosName = mock(NetbiosName.class); when(mockNetbiosName.getName()).thenReturn("MOCKNAME"); when(mockNetbiosName.getNameType()).thenReturn(0x20); when(mockNetbiosName.getScope()).thenReturn("mock.scope"); Name name = new Name(mockConfig, mockNetbiosName);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
// Given String server = "testServer"; int access = 0x00000001; // Example access value // When MsrpcLsarOpenPolicy2 msrpcLsarOpenPolicy2 = new MsrpcLsarOpenPolicy2(server, access, mockPolicyHandle); // Then // Verify that the super constructor is called with correct argumentsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0)