(filename)
| 411 | files = ["data/something00.txt", "more/data", "home", " #/wsfoobar", "\tstart/whitespace", "whitespace/end\t"] |
| 412 | |
| 413 | def evaluate(filename): |
| 414 | patterns = [] |
| 415 | with open(filename) as f: |
| 416 | load_exclude_file(f, patterns) |
| 417 | matcher = PatternMatcher(fallback=True) |
| 418 | matcher.add_inclexcl(patterns) |
| 419 | return [path for path in files if matcher.match(path)] |
| 420 | |
| 421 | exclfile = tmpdir.join("exclude.txt") |
| 422 |
no test coverage detected