Skip to content
Snippets Groups Projects
Commit 1e06cf67 authored by Will McCutchen's avatar Will McCutchen
Browse files

Chase that test coverage

parent 3b16eddf
No related branches found
No related tags found
No related merge requests found
......@@ -140,5 +140,17 @@ func TestSyntheticByteStream(t *testing.T) {
assertNil(t, err)
assertIntEqual(t, count, 5)
assertBytesEqual(t, p, []byte{90, 91, 92, 93, 94})
// invalid whence
_, err = s.Seek(10, 666)
if err.Error() != "Seek: invalid whence" {
t.Errorf("Expected \"Seek: invalid whence\", got %#v", err.Error())
}
// invalid offset
_, err = s.Seek(-10, io.SeekStart)
if err.Error() != "Seek: invalid offset" {
t.Errorf("Expected \"Seek: invalid offset\", got %#v", err.Error())
}
})
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment