Coverage for /builds/kinetik161/ase/ase/io/nwchem/parser.py: 100.00%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
1import re
3_pattern_test_data = []
6def _define_pattern(pattern, example, *args):
7 """Compile a regex and store an example pattern for testing."""
8 regex = re.compile(pattern, *args)
9 _pattern_test_data.append((regex, example))
10 return regex