- Sort Score
- Num 10 results
- Language All
Results 391 - 400 of 703 for Cases (0.04 seconds)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
import org.mockito.Mockito; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Security-focused test cases for Smb2NegotiateResponse input validation. * Tests various malformed input scenarios to ensure proper validation and * protection against buffer overflow, integer overflow, and other attacks. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
assertNotNull(result); assertTrue(result.contains("SmbInfoAllocation")); // Note: toString() uses this name } } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCasesTests { @Test @DisplayName("Should handle null buffer in decode") void testNullBuffer() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
cmd/format-erasure_test.go
Sets [][]string `json:"sets"` DistributionAlgo string `json:"distributionAlgo"` }{ Version: "0", }, }, false, }, } // Valid all test cases. for i, testCase := range testCases { if err := checkFormatErasureValue(testCase.format, nil); err != nil && testCase.success { t.Errorf("Test %d: Expected failure %s", i+1, err) } } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.7K bytes - Click Count (0) -
docs/en/docs/tutorial/handling-errors.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0) -
src/archive/tar/reader_test.go
output string // Expected value of string read } vectors := []struct { file string cases []testCase }{{ file: "testdata/gnu.tar", cases: []testCase{ {4, "Kilt"}, {6, "Google"}, }, }, { file: "testdata/sparse-formats.tar", cases: []testCase{ {2, "\x00G"}, {4, "\x00G\x00o"}, {6, "\x00G\x00o\x00G"}, {8, "\x00G\x00o\x00G\x00o"},Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Dec 30 15:28:53 GMT 2025 - 47.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
assertTrue(afterRead.contains("pathConsumed=")); assertTrue(afterRead.contains("numReferrals=")); } } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCasesTests { @Test @DisplayName("Should handle malformed buffer gracefully") void testReadDataWireFormatMalformedBuffer() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
docs/en/docs/contributing.md
/// All the documentation is in Markdown format in the directory `./docs/en/`. Many of the tutorials have blocks of code. In most of the cases, these blocks of code are actual complete applications that can be run as is. In fact, those blocks of code are not written inside the Markdown, they are Python files in the `./docs_src/` directory.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:59:26 GMT 2026 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
// Then: Should return binding's string representation assertEquals("mockBindingString", result); } } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCaseTests { @Test @DisplayName("Should handle null binding toString") void testToStringWithNullBinding() { // Given: Handle with null bindingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertNotNull(context); assertTrue(context.getContextType() > 0); } } } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCasesTest { @Test @DisplayName("Should handle maximum size arrays") void testMaximumSizeArrays() throws SMBProtocolDecodingException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
import java.util.function.BiConsumer; import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableMap} used for 0 entries and for 2+ entries. Additional * implementations exist for particular cases, like {@link ImmutableTable} views and hash flooding. * (This doc discusses {@link ImmutableMap} subclasses only for the JRE flavor; the Android flavor * differs.) * * @author Jesse Wilson * @author Kevin BourrillionCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 15.7K bytes - Click Count (0)