- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPeek (0.04 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)