- Sort Score
- Result 10 results
- Languages All
Results 1081 - 1090 of 1,385 for 1byte (0.01 sec)
-
src/test/java/jcifs/pac/PacLogonInfoTest.java
dos.writeLong(Long.reverseBytes(value)); } @Test @DisplayName("Test parsing with invalid data size") void testInvalidDataSize() { byte[] tooSmall = new byte[10]; PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacLogonInfo(tooSmall)); assertEquals("Malformed PAC", exception.getMessage()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
cmd/handler-utils_test.go
t.Fatal(err) } // Corrupted XML malformedReq := &http.Request{ Body: io.NopCloser(bytes.NewReader([]byte("<>"))), ContentLength: int64(len("<>")), } // Not an XML badRequest := &http.Request{ Body: io.NopCloser(bytes.NewReader([]byte("garbage"))), ContentLength: int64(len("garbage")), } // generates the input request with XML bucket configuration set to the request body.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 6.1K bytes - Viewed (0) -
cmd/batch-expire_test.go
retry: attempts: 10 # number of retries for the job before giving up delay: 500ms # least amount of delay between each retry ` var job BatchJobRequest err := yaml.Unmarshal([]byte(expireYaml), &job) if err != nil { t.Fatal("Failed to parse batch-job-expire yaml", err) } if !slices.Equal(job.Expire.Prefix.F(), []string{"myprefix"}) { t.Fatal("Failed to parse batch-job-expire yaml") }Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java
@AndroidIncompatible // Finalization probably just doesn't happen fast enough? @NullUnmarked public class FileBackedOutputStreamAndroidIncompatibleTest extends IoTestCase { public void testFinalizeDeletesFile() throws Exception { byte[] data = newPreFilledByteArray(100); FileBackedOutputStream out = new FileBackedOutputStream(0, true); write(out, data, 0, 100, true); File file = out.getFile(); assertEquals(100, file.length());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
File inputFile = URLUtil.toFile(url); /** * @throws Exception */ @Test public void testFileToFile() throws Exception { final byte[] bytes = readBytes(inputFile); assertThat(bytes, is("あいうえお".getBytes("UTF-8"))); } /** * @throws Exception */ @Test public void testReadUTF8() throws Exception {Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoRequest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 1.6K bytes - Viewed (0) -
src/archive/tar/example_test.go
hdr := &tar.Header{ Name: file.Name, Mode: 0600, Size: int64(len(file.Body)), } if err := tw.WriteHeader(hdr); err != nil { log.Fatal(err) } if _, err := tw.Write([]byte(file.Body)); err != nil { log.Fatal(err) } } if err := tw.Close(); err != nil { log.Fatal(err) } // Open and iterate through the files in the archive. tr := tar.NewReader(&buf) for {Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Nov 16 16:54:08 UTC 2017 - 1.4K bytes - Viewed (0) -
cmd/erasure-metadata-utils_test.go
{"a/b/c/", []int{3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2}}, {"/a/b/c", []int{6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5}}, {string([]byte{0xff, 0xfe, 0xfd}), []int{15, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}}, } // Tests hashing order to be consistent. for i, testCase := range testCases { hashedOrder := hashOrder(testCase.objectName, 16)Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
testEncodesWithOffset(base64(), "foobar", 4, 0, ""); } public void testBase64Url() { testDecodesByBytes(base64Url(), "_zzz", new byte[] {-1, 60, -13}); testDecodesByBytes(base64Url(), "-zzz", new byte[] {-5, 60, -13}); } public void testBase64UrlInvalidDecodings() { assertFailsToDecode(base64Url(), "+zzz", "Unrecognized character: +");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
private String defaultDomain; @Override public void init() throws ServletException { InputStream is; final StringBuilder sb = new StringBuilder(); final byte[] buf = new byte[1024]; int n, level; String name; Config.setProperty("jcifs.smb1.smb.client.soTimeout", "600000"); Config.setProperty("jcifs.smb1.smb.client.attrExpirationPeriod", "300000");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0)