diff options
| author | Damien George <damien@micropython.org> | 2025-09-19 13:09:25 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-26 00:24:08 +1000 |
| commit | b44c4de4fde4a520f0af044d9495187abc9e29fa (patch) | |
| tree | 52b14c58ab32ea26365eedb5ca982c7be1122857 /ports/unix/coverage.c | |
| parent | 2373340aa342dbd30e1482cf431895f808d863b2 (diff) | |
tests/ports/unix: Add coverage test for readinto1 stream method.
And expand the test for `readinto()` to test the difference between trying
to read the requested amount by doing multiple underlying IO calls, and
only doing one call.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/unix/coverage.c')
| -rw-r--r-- | ports/unix/coverage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c index e47558689..1dd009ed0 100644 --- a/ports/unix/coverage.c +++ b/ports/unix/coverage.c @@ -97,6 +97,7 @@ static const mp_rom_map_elem_t rawfile_locals_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_write), MP_ROM_PTR(&mp_stream_write_obj) }, { MP_ROM_QSTR(MP_QSTR_write1), MP_ROM_PTR(&mp_stream_write1_obj) }, { MP_ROM_QSTR(MP_QSTR_readinto), MP_ROM_PTR(&mp_stream_readinto_obj) }, + { MP_ROM_QSTR(MP_QSTR_readinto1), MP_ROM_PTR(&mp_stream_readinto1_obj) }, { MP_ROM_QSTR(MP_QSTR_readline), MP_ROM_PTR(&mp_stream_unbuffered_readline_obj) }, { MP_ROM_QSTR(MP_QSTR_ioctl), MP_ROM_PTR(&mp_stream_ioctl_obj) }, }; |
