- Sort Score
- Result 10 results
- Languages All
Results 3621 - 3630 of 5,353 for Return (0.06 sec)
-
guava/src/com/google/common/util/concurrent/Internal.java
// Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos(); } catch (ArithmeticException tooBig) { return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE; } } private Internal() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/https/Handler.java
/** * Default constructor for SMB1 HTTPS URL handler. */ public Handler() { } /** * Returns the default HTTPS port. * * @return An <code>int</code> containing the default HTTPS port. */ @Override protected int getDefaultPort() { return DEFAULT_HTTPS_PORT; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
cmd/auth-handler_test.go
"net/url" "os" "testing" "time" "github.com/minio/minio/internal/auth" "github.com/minio/pkg/v3/policy" ) type nullReader struct{} func (r *nullReader) Read(b []byte) (int, error) { return len(b), nil } // Test get request auth type. func TestGetRequestAuthType(t *testing.T) { type testCase struct { req *http.Request authT authType }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
// Given: Close handle message with mocked return value samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); when(mockNdrBuffer.dec_ndr_long()).thenReturn(0); // When: Decoding output message.decode_out(mockNdrBuffer); // Then: Should decode return value verify(mockNdrBuffer).dec_ndr_long();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
static String create(String unused) { return "I don't check"; } } private interface InterfaceStaticMethodChecksNull { static String create(String s) { return checkNotNull(s); } } private interface InterfaceDefaultMethodFailsToCheckNull { static InterfaceDefaultMethodFailsToCheckNull create() { return new InterfaceDefaultMethodFailsToCheckNull() {}; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
// Scenario: Transport connection fails when(mockCredentials.getUserDomain()).thenReturn("authdomain.com"); // When transport fails, it should return false assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com")); } // Tests for getDc @Test void testGetDc_DfsDisabled() throws SmbAuthException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/BaseTest.java
data[i] = (byte) (i % 256); } return data; } /** * Create a test string with specified length */ protected String createTestString(int length) { StringBuilder sb = new StringBuilder(length); for (int i = 0; i < length; i++) { sb.append((char) ('A' + (i % 26))); } return sb.toString(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataUtils.java
/** * Assists in handling repository metadata. * */ @Deprecated class MetadataUtils { public static Metadata cloneMetadata(Metadata src) { if (src == null) { return null; } return src.clone(); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.1K bytes - Viewed (0) -
tests/submodel_test.go
Age int Name string Detail string } // Panic-safe BeforeUpdate hook that checks for Changed("age") func (m *Man) BeforeUpdate(tx *gorm.DB) (err error) { if !tx.Statement.Changed("age") { return nil } return nil } func TestSubModel(t *testing.T) { man := Man{Age: 18, Name: "random-name"} if err := DB.Create(&man).Error; err != nil { t.Fatalf("unexpected error: %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Aug 20 04:51:17 UTC 2025 - 944 bytes - Viewed (0) -
src/archive/tar/stat_actime1.go
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 431 bytes - Viewed (0)