- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 73 for testData (0.24 sec)
-
cmd/test-utils_test.go
} rec = httptest.NewRecorder() apiRouter.ServeHTTP(rec, reqC) checkRespErr(rec, http.StatusOK) } } // unzip a file into a specific target dir - used to unzip sample data in cmd/testdata/ func unzipArchive(zipFilePath, targetDir string) error { zipReader, err := zip.OpenReader(zipFilePath) if err != nil { return err } for _, file := range zipReader.File {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 77K bytes - Viewed (0) -
cmd/xl-storage_test.go
// create xlStorage test setup xlStorage, _, err := newXLStorageTestSetup(t) if err != nil { t.Fatalf("Unable to cfgreate xlStorage test setup, %s", err) } xlMeta, _ := os.ReadFile("testdata/xl.meta") fi, _ := getFileInfo(xlMeta, "exists", "as-file", "", fileInfoOpts{Data: false}) // Create files for the test cases. if err = xlStorage.MakeVol(t.Context(), "exists"); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0) -
doc/go_spec.html
as in an <a href="#Assignment_statements">assignment statement</a>. </p> <pre> var testdata *struct { a *[7]int } for i, _ := range testdata.a { // testdata.a is never evaluated; len(testdata.a) is constant // i ranges from 0 to 6 f(i) } var a [10]string for i, s := range a { // type of i is int // type of s is string
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 06 19:12:15 UTC 2025 - 286.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
byte[] dst = new byte[100]; // When int bytesWritten = transCallNamedPipe.writeDataWireFormat(dst, 0); // Then assertEquals(TEST_DATA.length, bytesWritten); byte[] writtenData = Arrays.copyOfRange(dst, 0, TEST_DATA.length); assertArrayEquals(TEST_DATA, writtenData); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
SecretKeySpec key = new SecretKeySpec(new byte[16], "ARCFOUR"); byte[] mac = PacMac.calculateMacArcfourHMACMD5(3, key, TEST_DATA); assertNotNull(mac); assertEquals(16, mac.length); // Test with a different key usage byte[] mac2 = PacMac.calculateMacArcfourHMACMD5(9, key, TEST_DATA); assertNotNull(mac2); assertEquals(16, mac2.length); // Test with another key usage
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
cmd/benchmark-utils_test.go
if err != nil { b.Fatal(err) } // get text data generated for number of bytes equal to object size. textData := generateBytesData(objSize) // generate md5sum for the generated data. // md5sum of the data to written is required as input for PutObject. md5hex := getMD5Hash(textData) sha256hex := "" // benchmark utility which helps obtain number of allocations and bytes allocated per ops. b.ReportAllocs()
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
@Mock private Configuration mockConfig; private static final int TEST_FID = 0x1234; private static final byte[] TEST_DATA = "Test pipe data".getBytes(StandardCharsets.UTF_8); private static final int TEST_OFFSET = 0; private static final int TEST_LENGTH = TEST_DATA.length; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
@Test fun setDate() { val expected = Date(1000) val headers = Headers .Builder() .add("testDate", Date(0L)) .set("testDate", expected) .build() assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT") assertThat(headers.getDate("testDate")).isEqualTo(expected) } @Test fun setInstant() { val expected = Instant.ofEpochMilli(1000L) val headers =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
Arrays.fill(destData, (byte) 0x00); // Clear destData ndrBuffer.readOctetArray(destData, 1, 3); // Read 0x10, 0x11, 0x12 into destData[1-3] assertEquals(3, ndrBuffer.getIndex()); assertEquals(0x00, destData[0]); assertEquals(0x10, destData[1]); assertEquals(0x11, destData[2]); assertEquals(0x12, destData[3]); assertEquals(0x00, destData[4]); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
// Need to include space for actual string data int stringDataStart = 28; // After the referral structure String testPath = "\\server\\share"; byte[] pathBytes = testPath.getBytes(java.nio.charset.StandardCharsets.UTF_16LE); int bufferSize = stringDataStart + pathBytes.length + 2; // +2 for null terminator byte[] buffer = new byte[bufferSize];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0)