Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for RoundTrip (0.1 sec)

  1. 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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. 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 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. 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());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. 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 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

                String[] parsed = KuromojiCSVUtil.parse(escaped);
                assertEquals("Roundtrip failed for: " + original, 1, parsed.length);
                assertEquals("Roundtrip failed for: " + original, original, parsed[0]);
            }
    
            // Test special cases where roundtrip doesn't work due to implementation quirks
            String input;
            String escaped;
            String[] parsed;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  8. 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 Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 10 16:35:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top