- Sort Score
- Num 10 results
- Language All
Results 11 - 19 of 19 for testBytes (0.06 seconds)
-
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
import org.jspecify.annotations.NullUnmarked; /** * Tests for AbstractStreamingHasher. * * @author Dimitris Andreou */ @NullUnmarked public class AbstractStreamingHasherTest extends TestCase { public void testBytes() { Sink sink = new Sink(4); // byte order insignificant here byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; sink.putByte((byte) 1); sink.putBytes(new byte[] {2, 3, 4, 5, 6}); sink.putByte((byte) 7);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 8.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 36.2K bytes - Click Count (0) -
src/bytes/reader_test.go
} wg.Wait() } func TestReaderWriteTo(t *testing.T) { for i := 0; i < 30; i += 3 { var l int if i > 0 { l = len(testString) / i } s := testString[:l] r := NewReader(testBytes[:l]) var b Buffer n, err := r.WriteTo(&b) if expect := int64(len(s)); n != expect { t.Errorf("got %v; want %v", n, expect) } if err != nil {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
} }; abstract boolean doEquals(byte[] a, byte[] b); } private byte[] testBytesA; private byte[] testBytesB; @BeforeExperiment void setUp() { testBytesA = new byte[size]; random.nextBytes(testBytesA); testBytesB = Arrays.copyOf(testBytesA, size); int indexToDifferAt = -1; switch (whereToDiffer) { case ONE_PERCENT_IN:Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
} }; abstract boolean doEquals(byte[] a, byte[] b); } private byte[] testBytesA; private byte[] testBytesB; @BeforeExperiment void setUp() { testBytesA = new byte[size]; random.nextBytes(testBytesA); testBytesB = Arrays.copyOf(testBytesA, size); int indexToDifferAt = -1; switch (whereToDiffer) { case ONE_PERCENT_IN:Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/DocsTest.kt
class DocsTestProject( model: CIBuildModel, stage: Stage, val os: Os, testJava: JvmCategory, testTypes: List<DocsTestType>, ) : Project({ id(asDocsTestId(model, os)) name = "Docs Test - ${testJava.version.toCapitalized()} ${os.asName()}" }) { val docsTests = testTypes.map { DocsTest(model, stage, os, testJava, it) } init { docsTests.forEach(this::buildType) } }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 08 05:47:02 GMT 2026 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
} @Test @DisplayName("Should not modify buffer beyond encoded area") void testEncodeDoesNotModifyBeyondArea() { // Given byte testByte = (byte) 0xEE; Arrays.fill(buffer, testByte); SrvCopychunk chunk = new SrvCopychunk(1, 2, 3); SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk); int expectedSize = HEADER_SIZE + CHUNK_SIZE;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
@Test @DisplayName("Should not modify buffer beyond encoded area") void testEncodeDoesNotModifyBeyondArea() { // Given byte testByte = (byte) 0xFF; java.util.Arrays.fill(buffer, testByte); SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096); // When chunk.encode(buffer, startIndex); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
*/ public void testEncodeDecode_RoundTrip() throws Exception { // Test with ASCII text final String text = "Hello, World!"; final byte[] textBytes = text.getBytes("UTF-8"); final String encoded = Base64Util.encode(textBytes); final byte[] decoded = Base64Util.decode(encoded); assertEquals("Round trip should preserve data", text, new String(decoded, "UTF-8"));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 6K bytes - Click Count (0)