- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,541 for bytes (0.05 sec)
-
cmd/erasure-object_test.go
bucket string versioned bool object string content []byte }{ {"bucket1", false, "object1", []byte("aaaaaaaaaaaaaaaa")}, {"bucket2", false, "object2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)}, {"bucket3", true, "version1", []byte("aaaaaaaaaaaaaaaa")}, {"bucket4", true, "version2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)}, } for i, testCase := range testCases {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
} private static void assertMessageDigestHashing(byte[] input, String algorithmName) { try { MessageDigest digest = MessageDigest.getInstance(algorithmName); assertEquals( HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input)); for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) { assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java
final byte[] bytes = "".getBytes(); final InputStream in = new ByteArrayInputStream(bytes); try { sitemapsHelper.parse(in); fail(); } catch (final CrawlingAccessException e) { // NOP } } public void test_parseXmlSitemaps_invalid2() { final byte[] bytes = "test".getBytes();
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 9.6K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
MountPath: "/tmp/drive1", ID: "uuid", Error: "", } var buf bytes.Buffer gob.NewEncoder(&buf).Encode(v) encoded := buf.Bytes() b.Log("Size:", buf.Len(), "bytes") b.SetBytes(1) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { dec := gob.NewDecoder(bytes.NewBuffer(encoded)) err := dec.Decode(&v) if err != nil { b.Fatal(err) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 9.4K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
tests := []testCase{ // Test - 1 valid buffer with CRLF. {bytes.NewReader([]byte("\r\n")), nil}, // Test - 2 invalid buffer with no CRLF. {bytes.NewReader([]byte("he")), errMalformedEncoding}, // Test - 3 invalid buffer with more characters. {bytes.NewReader([]byte("he\r\n")), errMalformedEncoding}, // Test - 4 smaller buffer than expected. {bytes.NewReader([]byte("h")), io.ErrUnexpectedEOF}, } for i, tt := range tests {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalrebalanceInfo(t *testing.T) { v := rebalanceInfo{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 25 19:36:57 UTC 2022 - 11K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestByteSource.java
import java.util.Random; /** * A byte source for testing that has configurable behavior. * * @author Colin Decker */ public final class TestByteSource extends ByteSource implements TestStreamSupplier { private final byte[] bytes; private final ImmutableSet<TestOption> options; private boolean inputStreamOpened; private boolean inputStreamClosed; TestByteSource(byte[] bytes, TestOption... options) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 21 02:27:51 UTC 2017 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestByteSource.java
import java.util.Random; /** * A byte source for testing that has configurable behavior. * * @author Colin Decker */ public final class TestByteSource extends ByteSource implements TestStreamSupplier { private final byte[] bytes; private final ImmutableSet<TestOption> options; private boolean inputStreamOpened; private boolean inputStreamClosed; TestByteSource(byte[] bytes, TestOption... options) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Sep 15 13:47:32 UTC 2016 - 1.9K bytes - Viewed (0) -
cmd/background-newdisks-heal-ops_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalhealingTracker(t *testing.T) { v := healingTracker{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
internal/dsync/lock-args_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalLockArgs(t *testing.T) { v := LockArgs{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 4.4K bytes - Viewed (0)