- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for TestPeek (0.05 seconds)
-
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 {Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (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()); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0)