(filename)
| 8 | |
| 9 | |
| 10 | def read_file(filename): |
| 11 | from tqdm import tqdm |
| 12 | num_lines = sum(1 for _ in open(filename, 'r')) |
| 13 | with open(filename, 'r') as f: |
| 14 | for line in tqdm(f, total=num_lines): |
| 15 | yield line |
| 16 | |
| 17 | |
| 18 | def check_output(filename, line_num=2): |
no outgoing calls
no test coverage detected