- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for RoundTrip (0.21 seconds)
-
src/test/java/jcifs/spnego/NegTokenTargTest.java
byte[] bytes = original.toByteArray(); NegTokenTarg roundTrip = new NegTokenTarg(bytes); // Assert – all getters match the original values assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip"); assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip"); assertArrayEquals(tokenArray, roundTrip.getMechanismToken(), "mechanism token should roundtrip");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
internal/grid/connection_test.go
const testPayload = "Hello Grid World!" gotResp := make(chan struct{}) go func() { start := time.Now() t.Log("Roundtrip: sending request") resp, err := remoteConn.Request(t.Context(), handlerTest, []byte(testPayload)) t.Log("Roundtrip:", time.Since(start), resp, err) gotResp <- struct{}{} }() <-gotCall remote.debugMsg(debugKillInbound) local.debugMsg(debugKillInbound)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 5.9K bytes - Click Count (0) -
internal/grid/trace.go
return c.roundtrip(h, req) } // Following trimming is needed for consistency between outputs with other internode traces. local := strings.TrimPrefix(strings.TrimPrefix(t.Local, httpsScheme), httpScheme) remote := strings.TrimPrefix(strings.TrimPrefix(t.Remote, httpsScheme), httpScheme) start := time.Now() body := bytesOrLength(req) resp, err := c.roundtrip(h, req) end := time.Now()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Jun 01 05:17:37 GMT 2024 - 4.1K bytes - Click Count (0) -
internal/http/transports.go
} // uaTransport - User-Agent transport type uaTransport struct { ua string rt http.RoundTripper } func (u *uaTransport) RoundTrip(req *http.Request) (*http.Response, error) { req2 := req.Clone(req.Context()) req2.Header.Set("User-Agent", u.ua) return u.rt.RoundTrip(req2) } // WithUserAgent wraps an existing transport with custom User-AgentCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 17:51:53 GMT 2025 - 6.5K bytes - Click Count (0) -
src/archive/zip/fuzz_test.go
if _, err := r.Open(f.Name); err != nil { continue } } // If we were unable to read anything out of the archive don't // bother trying to roundtrip it. if len(files) == 0 { return } w := NewWriter(io.Discard) for _, f := range files { ww, err := w.CreateHeader(f.header) if err != nil {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Jan 13 18:06:33 GMT 2022 - 1.7K bytes - Click Count (0) -
src/archive/tar/fuzz_test.go
continue } files = append(files, file{header: hdr, content: buf.Bytes()}) } // If we were unable to read anything out of the archive don't // bother trying to roundtrip it. if len(files) == 0 { return } out := bytes.NewBuffer(nil) w := NewWriter(out) for _, f := range files { if err := w.WriteHeader(f.header); err != nil {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Jan 13 18:06:33 GMT 2022 - 2.2K bytes - Click Count (0) -
cmd/bucket-lifecycle_test.go
} if actual != tc.expectedStatus { t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc.expectedStatus) } } } // TestRestoreObjStatusRoundTrip restoreObjStatus roundtrip func TestRestoreObjStatusRoundTrip(t *testing.T) { testCases := []restoreObjStatus{ ongoingRestoreObj(), completedRestoreObj(time.Now().UTC()), } for i, tc := range testCases {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 31 09:57:57 GMT 2022 - 7K bytes - Click Count (0)