1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

io: add a test for read_all (#6898)

This commit is contained in:
Takahiro Yaota
2020-11-24 00:17:39 +09:00
committed by GitHub
parent 380e3640e3
commit 07fae5adf6
2 changed files with 45 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ pub fn make_reader(r Reader) Reader {
return r
}
pub const (
eof_code = -1
eof = error_with_code('EOF', eof_code)
)
const (
read_all_len = 10 * 1024
read_all_grow_len = 1024