- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 187 for simulate (0.07 seconds)
-
cmd/metrics-v2_test.go
}, { val: 0.79, label: labels[2], }, } ticker := time.NewTicker(1 * time.Millisecond) defer ticker.Stop() for _, obs := range observations { // Send observations once every 1ms, to simulate delay between // observations. This is to test the channel based // synchronization used internally. <-ticker.C ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val) }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 11.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
// Step 4: Initially no cached listing assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Step 5: Simulate directory enumeration and update cache List<SmbFile> files = Arrays.asList(mockFile1, mockFile2); directoryLeaseManager.updateDirectoryCache(directoryPath, files);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
public int dec_ndr_long() { // Simulate decoding a long offset += 4; return 0; // Return a dummy value } @Override public void enc_ndr_short(int v) { // Simulate encoding a short offset += 2; } @Override public int dec_ndr_short() { // Simulate decoding a short offset += 2;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 60.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
int writeParameterWordsWireFormat(byte[] dst, int dstIndex) { paramWordsWritten = 10; // simulate write of 10 bytes of parameter words return paramWordsWritten; } @Override int writeBytesWireFormat(byte[] dst, int dstIndex) { bytesWritten = 20; // simulate 20 bytes of data return bytesWritten; } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
} @Test void testMultipleFailuresExceedRetryLimit() { IOException error = new IOException("Connection failed"); // Simulate multiple failures for (int i = 0; i < 5; i++) { failover.handleFailure(failedChannel, error); } // Should eventually remove the channelCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
@Nested @DisplayName("Integration Pattern Tests") class IntegrationPatternTests { @Test @DisplayName("Should simulate usage in Smb2CreateResponse context") void testSimulatedUsagePattern() throws SMBProtocolDecodingException { // Simulate the pattern from Smb2CreateResponse byte[] nameBytes = "SMB2_CREATE_CONTEXT".getBytes(StandardCharsets.UTF_8);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Nested @DisplayName("Integration Pattern Tests") class IntegrationPatternTests { @Test @DisplayName("Should simulate usage in Smb2CreateRequest context") void testSimulatedUsagePattern() { // Simulate the pattern from Smb2CreateRequest CreateContextRequest[] contexts = new CreateContextRequest[3];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
cmd/naughty-disk_test.go
import ( "context" "io" "sync" "time" "github.com/minio/madmin-go/v3" ) // naughtyDisk wraps a POSIX disk and returns programmed errors // specified by the developer. The purpose is to simulate errors // that are hard to simulate in practice like DiskNotFound. // Programmed errors are stored in errors field. type naughtyDisk struct { // The real disk disk StorageAPI // Programmed errors: API call number => error to return
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Apr 25 05:41:04 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
String sessionId = "test-session-3"; byte[] salt = preauthService.generatePreauthSalt(); preauthService.initializeSession(sessionId, salt, PreauthIntegrityService.HASH_ALGO_SHA512); // Simulate message exchange preauthService.updatePreauthHash(sessionId, "Message1".getBytes()); preauthService.updatePreauthHash(sessionId, "Message2".getBytes());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0)