Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestPeek (0.03 sec)

  1. 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)
  2. 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());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top