Yield (format, items, item) for all possible modes and format characters plus one random compound format string.
(nitems, testobj='ndarray')
| 240 | yield randitems(n, obj, mode, char) |
| 241 | |
| 242 | def iter_format(nitems, testobj='ndarray'): |
| 243 | """Yield (format, items, item) for all possible modes and format |
| 244 | characters plus one random compound format string.""" |
| 245 | for t in iter_mode(nitems, testobj): |
| 246 | yield t |
| 247 | if testobj != 'ndarray': |
| 248 | return |
| 249 | yield struct_items(nitems, testobj) |
| 250 | |
| 251 | |
| 252 | def is_byte_format(fmt): |
no test coverage detected
searching dependent graphs…