- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for RoundTrip (0.05 sec)
-
internal/grid/grid_test.go
t.Errorf("want %q, got %q", testPayload, string(resp)) } t.Log("Roundtrip:", time.Since(start)) }) t.Run("localToRemoteErr", func(t *testing.T) { const testPayload = "Hello Grid World!" start := time.Now() resp, err := remoteConn.Request(t.Context(), handlerTest2, []byte(testPayload)) t.Log("Roundtrip:", time.Since(start)) if len(resp) != 0 { t.Errorf("want nil, got %q", string(resp)) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 36.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
context.setMaxCacheAge(60000L); context.setNotificationEnabled(true); context.setNotificationFilter(0x1F); // Test encoding and decoding roundtrip byte[] buffer = new byte[context.size()]; int encoded = context.encode(buffer, 0); assertEquals(context.size(), encoded);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
internal/grid/muxclient.go
LastPong: time.Now().UnixNano(), BaseFlags: parent.baseFlags, clientPingInterval: parent.clientPingInterval, } } // roundtrip performs a roundtrip, returning the first response. // This cannot be used concurrently. func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) { if m.init { return nil, errors.New("mux client already used") } m.init = true m.singleResp = true
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 15.9K bytes - Viewed (0) -
cmd/sftp-server-driver.go
FileList: handler, } } type forwardForTransport struct { tr http.RoundTripper fwd string } func (f forwardForTransport) RoundTrip(r *http.Request) (*http.Response, error) { r.Header.Set("X-Forwarded-For", f.fwd) return f.tr.RoundTrip(r) } func (f *sftpDriver) getMinIOClient() (*minio.Client, error) { mcreds := credentials.NewStaticV4( f.permissions.CriticalOptions["AccessKey"],Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 10 16:35:49 UTC 2025 - 11.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
assertEquals(1, destinationBuffer[dstIndex + 20]); // deletePending assertEquals(0, destinationBuffer[dstIndex + 21]); // directory } @Test @DisplayName("Test encode and decode roundtrip") void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException { // Setup first instance with test data byte[] originalBuffer = new byte[22]; long expectedAllocationSize = 32768L;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
byte[] bytes = SID.toByteArray(st); // Act: construct from bytes and re-encode SID sid = new SID(bytes, 0); byte[] roundTrip = sid.toByteArray(); // Assert assertArrayEquals(bytes, roundTrip); assertEquals("S-1-5-10-20", sid.toString()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
internal/grid/handlers.go
} // RoundTripper provides an interface for type roundtrip serialization. type RoundTripper interface { msgp.Unmarshaler msgp.Marshaler msgp.Sizer comparable } // SingleHandler is a type safe handler for single roundtrip requests. type SingleHandler[Req, Resp RoundTripper] struct { id HandlerID sharedResp boolRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 27.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
assertTrue(ctx.isPreferredMech(mech1), "first supported is preferred"); assertArrayEquals(new ASN1ObjectIdentifier[] { mech1, mech2 }, ctx.getSupportedMechs(), "supported mechs"); // MIC roundtrip: calculate then verify byte[] data = new byte[] { 10, 20, 30 }; byte[] mic = ctx.calculateMIC(data); assertNotNull(mic); ctx.verifyMIC(data, mic); // should not throw
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
assertArrayEquals(new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF }, uuid.node); } @Test @DisplayName("Should handle encode-decode roundtrip correctly") void testUuidTEncodeDecodeRoundtrip() throws NdrException { // Given: An original UUID with specific values rpc.uuid_t originalUuid = new rpc.uuid_t();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
assertTrue(result.length > 0, "Result should not be empty"); // Verify round-trip conversion String roundTrip = new String(result, StandardCharsets.UTF_16LE); assertEquals(UNICODE_STRING, roundTrip, "Round-trip conversion should preserve Unicode"); } @Test @DisplayName("getASCIIBytes should encode string as ASCII")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)