Skip to content

Commit 0d75606

Browse files
committed
milestone: coverage make test_full passes
1 parent df56ba2 commit 0d75606

52 files changed

Lines changed: 414 additions & 225 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

extmod/modbtree.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,13 @@ STATIC const mp_obj_type_t btree_type = {
298298
.flags = MP_TYPE_FLAG_FULL,
299299
.name = MP_QSTR_btree,
300300
.print = btree_print,
301-
.getiter = btree_getiter,
302-
.iternext = btree_iternext,
303-
.binary_op = btree_binary_op,
304-
.subscr = btree_subscr,
305301
.locals_dict = (void *)&btree_locals_dict,
302+
EXTENDED_FIELDS(
303+
.getiter = btree_getiter,
304+
.iternext = btree_iternext,
305+
.binary_op = btree_binary_op,
306+
.subscr = btree_subscr,
307+
),
306308
};
307309
#endif
308310

extmod/modframebuf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,10 @@ STATIC const mp_obj_type_t mp_type_framebuf = {
605605
.flags = MP_TYPE_FLAG_FULL,
606606
.name = MP_QSTR_FrameBuffer,
607607
.make_new = framebuf_make_new,
608-
.buffer_p = { .get_buffer = framebuf_get_buffer },
609608
.locals_dict = (mp_obj_dict_t *)&framebuf_locals_dict,
609+
EXTENDED_FIELDS(
610+
.buffer_p = { .get_buffer = framebuf_get_buffer },
611+
),
610612
};
611613
#endif
612614

extmod/moduasyncio.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ STATIC const mp_obj_type_t task_type = {
288288
.name = MP_QSTR_Task,
289289
.make_new = task_make_new,
290290
.attr = task_attr,
291-
.getiter = task_getiter,
292-
.iternext = task_iternext,
291+
EXTENDED_FIELDS(
292+
.getiter = task_getiter,
293+
.iternext = task_iternext,
294+
),
293295
};
294296

295297
/******************************************************************************/

extmod/moductypes.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,11 @@ STATIC const mp_obj_type_t uctypes_struct_type = {
627627
.print = uctypes_struct_print,
628628
.make_new = uctypes_struct_make_new,
629629
.attr = uctypes_struct_attr,
630-
.subscr = uctypes_struct_subscr,
631-
.unary_op = uctypes_struct_unary_op,
632-
.buffer_p = { .get_buffer = uctypes_get_buffer },
630+
EXTENDED_FIELDS(
631+
.subscr = uctypes_struct_subscr,
632+
.unary_op = uctypes_struct_unary_op,
633+
.buffer_p = { .get_buffer = uctypes_get_buffer },
634+
),
633635
};
634636

635637
STATIC const mp_rom_map_elem_t mp_module_uctypes_globals_table[] = {

extmod/modutimeq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ STATIC const mp_obj_type_t utimeq_type = {
196196
.flags = MP_TYPE_FLAG_FULL,
197197
.name = MP_QSTR_utimeq,
198198
.make_new = utimeq_make_new,
199-
.unary_op = utimeq_unary_op,
200199
.locals_dict = (void *)&utimeq_locals_dict,
200+
EXTENDED_FIELDS(
201+
.unary_op = utimeq_unary_op,
202+
),
201203
};
202204

203205
STATIC const mp_rom_map_elem_t mp_module_utimeq_globals_table[] = {

extmod/moduzlib.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ STATIC const mp_obj_type_t decompio_type = {
125125
.flags = MP_TYPE_FLAG_FULL,
126126
.name = MP_QSTR_DecompIO,
127127
.make_new = decompio_make_new,
128-
.protocol = &decompio_stream_p,
129128
.locals_dict = (void *)&decompio_locals_dict,
129+
EXTENDED_FIELDS(
130+
.protocol = &decompio_stream_p,
131+
),
130132
};
131133
#endif
132134

extmod/ulab

Submodule ulab updated from 161a728 to 73c2764

extmod/vfs_fat.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,10 @@ const mp_obj_type_t mp_fat_vfs_type = {
477477
.flags = MP_TYPE_FLAG_FULL,
478478
.name = MP_QSTR_VfsFat,
479479
.make_new = fat_vfs_make_new,
480-
.protocol = &fat_vfs_proto,
481480
.locals_dict = (mp_obj_dict_t *)&fat_vfs_locals_dict,
481+
EXTENDED_FIELDS(
482+
.protocol = &fat_vfs_proto,
483+
),
482484

483485
};
484486

extmod/vfs_fat_file.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,12 @@ const mp_obj_type_t mp_type_vfs_fat_fileio = {
248248
.name = MP_QSTR_FileIO,
249249
.print = file_obj_print,
250250
.make_new = file_obj_make_new,
251-
.getiter = mp_identity_getiter,
252-
.iternext = mp_stream_unbuffered_iter,
253-
.protocol = &vfs_fat_fileio_stream_p,
254251
.locals_dict = (mp_obj_dict_t *)&vfs_fat_rawfile_locals_dict,
252+
EXTENDED_FIELDS(
253+
.getiter = mp_identity_getiter,
254+
.iternext = mp_stream_unbuffered_iter,
255+
.protocol = &vfs_fat_fileio_stream_p,
256+
),
255257
};
256258
#endif
257259

@@ -265,13 +267,16 @@ STATIC const mp_stream_p_t vfs_fat_textio_stream_p = {
265267

266268
const mp_obj_type_t mp_type_vfs_fat_textio = {
267269
{ &mp_type_type },
270+
.flags = MP_TYPE_FLAG_FULL,
268271
.name = MP_QSTR_TextIOWrapper,
269272
.print = file_obj_print,
270273
.make_new = file_obj_make_new,
271-
.getiter = mp_identity_getiter,
272-
.iternext = mp_stream_unbuffered_iter,
273-
.protocol = &vfs_fat_textio_stream_p,
274274
.locals_dict = (mp_obj_dict_t *)&vfs_fat_rawfile_locals_dict,
275+
EXTENDED_FIELDS(
276+
.getiter = mp_identity_getiter,
277+
.iternext = mp_stream_unbuffered_iter,
278+
.protocol = &vfs_fat_textio_stream_p,
279+
),
275280
};
276281

277282
// Factory function for I/O stream classes

extmod/vfs_lfsx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ const mp_obj_type_t MP_TYPE_VFS_LFSx = {
491491
.name = MP_QSTR_VfsLfs2,
492492
#endif
493493
.make_new = MP_VFS_LFSx(make_new),
494-
.protocol = &MP_VFS_LFSx(proto),
495494
.locals_dict = (mp_obj_dict_t *)&MP_VFS_LFSx(locals_dict),
495+
EXTENDED_FIELDS(
496+
.protocol = &MP_VFS_LFSx(proto),
497+
),
496498
};

0 commit comments

Comments
 (0)