- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 3,339 for code2 (0.03 seconds)
-
src/test/java/jcifs/dcerpc/DcerpcErrorTest.java
faultCodes.add(DcerpcError.DCERPC_FAULT_PROTO_ERROR); // Verify all 9 codes are unique assertEquals(9, faultCodes.size(), "All fault codes should be unique"); } @Test @DisplayName("Should verify fault code value ranges and patterns") void testFaultCodeValueRanges() { // Standard fault codes (0x00000000 - 0x0000FFFF range)
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* ImmutableSet.of("AZ", "CQ", "ZX"); * * private final ImmutableSet<String> codes; * * public Foo(Iterable<String> codes) { * this.codes = ImmutableSet.copyOf(codes); * checkArgument(Collections.disjoint(this.codes, RESERVED_CODES)); * } * } * } * * <h3>See also</h3> * * <p>See the Guava User Guide article on <a href=
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0) -
src/test/java/jcifs/DialectVersionTest.java
int dialect = version.getDialect(); assertTrue(dialect > 0, "Dialect code should be positive for " + version); assertTrue(dialectCodes.add(dialect), "Dialect code should be unique for " + version); } } // Should have 5 unique dialect codes for SMB2+ versions assertEquals(5, dialectCodes.size()); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt
for (i in CODE_BIT_COUNTS.indices) { addCode(i, CODES[i], CODE_BIT_COUNTS[i].toInt()) } } @Throws(IOException::class) fun encode( source: ByteString, sink: BufferedSink, ) { var accumulator = 0L var accumulatorBitCount = 0 for (i in 0 until source.size) { val symbol = source[i] and 0xff val code = CODES[symbol]
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 11K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java
@Override public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) { try { ArtifactVersion version1 = node1.getArtifact().getSelectedVersion(); ArtifactVersion version2 = node2.getArtifact().getSelectedVersion(); return version1.compareTo(version2) > 0 ? node1 : node2; } catch (OverConstrainedVersionException exception) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.2K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java
XmlNode node1 = (XmlNode) pointer1.getBaseValue(); XmlNode node2 = (XmlNode) pointer2.getBaseValue(); if (node1 == node2) { return 0; } for (XmlNode child : node.children()) { if (child == node1) { return -1; } if (child == node2) { return 1; } } return 0; }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosErrorTest.java
@DisplayName("Happy path: known DOS codes map to expected NTSTATUS") void mapsKnownDosCodesToNtStatus(int dosCode, int expectedNtStatus) { // Act int actual = findNtStatusOrMinusOne(dosCode); // Assert assertEquals(expectedNtStatus, actual, "Mapping must match table entry"); } @Test @DisplayName("Edge: zero DOS code maps to zero NTSTATUS") void zeroCodeMapsToZero() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
/** * Basic unit tests for {@link SmbConstants}. The interface only * provides {@code static final} constants, so the test suite focuses on * value correctness, bit‑mask logic, and some derived properties. * * <p>Mockito is exercised in a dummy scenario to satisfy the * request for an interaction test. The mock represents a * {@code SmbTransport} collaborator and is used only forCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java
// Unknown code → hex string (uppercase) Arguments.of(0xDEADBEEF, "0xDEADBEEF")); } @ParameterizedTest @MethodSource("errorCodes") void constructorInitialisesMessageAndStatus(int code, String expectedMsg) { SmbAuthException e = new SmbAuthException(code); assertEquals(expectedMsg, e.getMessage(), "message for code " + Integer.toHexString(code));
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.2K bytes - Click Count (0) -
cmd/namespace-lock_test.go
) // WARNING: // // Expected source line number is hard coded, 35, in the // following test. Adding new code before this test or changing its // position will cause the line number to change and the test to FAIL // Tests getSource(). func TestGetSource(t *testing.T) { currentSource := func() string { return getSource(2) } gotSource := currentSource() // Hard coded line number, 34, in the "expectedSource" value
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3K bytes - Click Count (0)