- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestPeek (0.03 sec)
-
src/bytes/buffer_test.go
{"a", 0, 2, "a", io.EOF}, {"helloworld", 4, 3, "owo", nil}, {"helloworld", 5, 5, "world", nil}, {"helloworld", 5, 6, "world", io.EOF}, {"helloworld", 10, 1, "", io.EOF}, } func TestPeek(t *testing.T) { for _, test := range peekTests { buf := NewBufferString(test.buffer) buf.Next(test.skip) bytes, err := buf.Peek(test.n) if string(bytes) != test.expected {Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Nov 14 19:01:17 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
} @Test void testGetFilePointer() throws SmbException { assertEquals(0, smbRandomAccessFile.getFilePointer()); } @Test void testSeek() throws SmbException { long newPosition = 100L; smbRandomAccessFile.seek(newPosition); assertEquals(newPosition, smbRandomAccessFile.getFilePointer()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)