- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 582 for RESET (0.39 seconds)
-
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
assertTrue(statsBefore.get(EventType.FILE_ACCESS) > 0, "Should have file access events before reset"); logger.resetStatistics(); Map<EventType, Long> statsAfter = logger.getStatistics(); // After reset, all counters should be 0 for (Long count : statsAfter.values()) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
* the {@link ByteSource} returned by {@link #asByteSource} is garbage collected. Prefer to {@link * #reset} the stream explicitly, rather than rely on garbage collection: If you call {@link * #reset} explicitly, you can call it more promptly, and you can appropriately handle any * exception that results. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertThat(readFully(reader)).isEqualTo(string); assertFullyRead(reader); // reset and read again reader.reset(); assertThat(readFully(reader)).isEqualTo(string); assertFullyRead(reader); // reset, skip, mark, then read the rest reader.reset(); assertEquals(5, reader.skip(5)); reader.mark(Integer.MAX_VALUE);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 6.7K bytes - Click Count (0) -
cmd/url_test.go
if err != nil { b.Fatal(err) } // benchmark utility which helps obtain number of allocations and bytes allocated per ops. b.ReportAllocs() // the actual benchmark for PutObject starts here. Reset the benchmark timer. b.ResetTimer() if err := req.ParseForm(); err != nil { b.Fatal(err) } b.RunParallel(func(pb *testing.PB) { for pb.Next() { req.Form.Get("uploadId") } })Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Nov 16 17:28:29 GMT 2021 - 2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
assertEquals(0, netServerEnum2.setupCount); assertEquals(5000, netServerEnum2.timeout); } /** * Test the reset method. */ @Test void testReset() { String lastName = "LAST_NAME"; netServerEnum2.reset(0, lastName); assertEquals(lastName, netServerEnum2.lastName); } /** * Test the writeSetupWireFormat method. */ @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
} /** * Test that pre-auth hash is reset on error */ @Test @DisplayName("Pre-auth integrity hash should reset on error") void testPreauthHashResetOnError() throws Exception { // Setup invalid SMB2 state to trigger error setPrivateField(transport, "smb2", false); // Try to update preauth hash - should fail and resetCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
buf.reset(); ns.encode(buf); // should not throw // After encoding, check how many bytes were used int bytesUsed = buf.getIndex(); // Should be 2 bytes for the short value (alignment may add padding) assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short"); // Reset index to read back buf.reset();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
NdrHyper hyper = new NdrHyper(original); // Create buffer with extra space for alignment NdrBuffer buf = new NdrBuffer(new byte[16], 0); hyper.encode(buf); // Reset buffer position for decoding buf.reset(); NdrHyper decoded = new NdrHyper(0); decoded.decode(buf); assertEquals(original, decoded.value, "Decoded value should match encoded value"); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
// Reset error and test hasMore flag response.setTestErrorCode(0); response.hasMore = false; assertFalse(response.hasMoreElements()); } @Test @DisplayName("Test reset functionality") void testReset() { // Reset should not throw exception assertDoesNotThrow(() -> response.reset()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
} @Test @DisplayName("Test reset functionality") void testReset() { // Reset should not throw exception assertDoesNotThrow(() -> transaction.reset()); // Transaction should be ready for reuse assertTrue(transaction.hasMoreElements()); } @Test @DisplayName("Test reset with key and lastName") void testResetWithKeyAndLastName() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0)