summaryrefslogtreecommitdiffstatshomepage
path: root/tests/ports/unix/extra_coverage.py.exp
blob: 19b32f1c9d945ab4c93301f0b9cd96832c22e12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# mp_printf
-123 +123  123
-0123
123
123
1ABCDEF
ab abc ' abc' ' True' 'Tru'

false true
(null)
-2147483648
2147483648
80000000
80000000
abc
%
# GC
0
0
# GC part 2
pass
# tracked allocation
m_tracked_head = 0
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
m_tracked_head = 0
# vstr
tests
sts

test
tes
RuntimeError: 
RuntimeError: 
# repl
ame__
port 

builtins        micropython     _asyncio        _thread
array           binascii        btree           cexample
cmath           collections     cppexample      cryptolib
deflate         errno           example_package
ffi             framebuf        gc              hashlib
heapq           io              json            machine
marshal         math            os              platform
random          re              select          socket
struct          sys             termios         time
tls             uctypes         vfs             websocket
me

micropython     machine         marshal         math

argv            atexit          byteorder       exc_info
executable      exit            getsizeof       implementation
intern          maxsize         modules         path
platform        print_exception                 ps1
ps2             stderr          stdin           stdout
tracebacklimit  version         version_info
ementation
# attrtuple
(start=1, stop=2, step=3)
# str
1
# bytearray
data
# mpz
1
12345678
0
0
0
0
0
1
12345
6
-1
# runtime utils
TypeError: unsupported type for __abs__: 'str'
TypeError: unsupported types for __divmod__: 'str', 'str'
0
1
2
OverflowError: overflow converting long int to machine word
OverflowError: overflow converting long int to machine word
ValueError: 
Warning: test
# format float
?
+1e+00
+1e+00
# binary
123
456
# VM
2 1
# scheduler
sched(0)=1
sched(1)=1
sched(2)=1
sched(3)=1
sched(4)=0
unlocked
0
1
2
3
KeyboardInterrupt: 
KeyboardInterrupt: 
10
loop
scheduled function
loop
scheduled function
loop
scheduled function
scheduled function
# ringbuf
99 0
98 1
22
99 0
97 2
aa55
99 0
0 99
-1
1 98
-1
2 97
0
cc99
99 0
0
11bb
0
22ff
-1
-1
0
0
abc123
-1
-2
# pairheap
create: 0 0 0 0
pop all: 0 1 2 3
create: 7 6 5 4 3 2 1 0
pop all: 0 1 2 3 4 5 6 7
create: 1 - - 1 1 1 1 1 1
pop all: 1 2
create: 1 1 1 1 2 2
pop all: 2 4
create: 1 1 1 1 1
pop all: 1 3 4
create: 3 3 3 1 1 1
pop all: 1 2 4 5
# mp_obj_is_type
1 1
0 0
1 1
1 1
0 0
1 1
# stackctrl
1 1
# end coverage.c
0123456789 b'0123456789'
7300
7300
7300
7300
None
None
None
None
None
None
b'123'
b'123'
b'123'
OSError
0
None
None
cpp None
(3, 'hellocpp')
frzstr1
frzstr1.py
frzmpy1
frzmpy1.py
frzstr_pkg1.__init__
frzstr_pkg1/__init__.py 1
frzmpy_pkg1.__init__
frzmpy_pkg1/__init__.py 1
frzstr_pkg2.mod
1
frzmpy_pkg2.mod
1
ZeroDivisionError
\

X
'\x1b'
b'\x00\xff'
frzmpy4 1
frzmpy4 2
NULL
uPy
a long string that is not interned
a string that has unicode αβγ chars
b'bytes 1234\x01'
123456789
0
1
2
3
frozentest.py
example_package.__init__
<module 'example_package.foo.bar'>
example_package.foo.bar.f
<module 'example_package'> <module 'example_package.foo'> <module 'example_package.foo.bar'>
example_package.f
example_package.foo.f
example_package.foo.bar.f
True
example_package.foo.f
True