(name, checks, index)
| 395 | |
| 396 | |
| 397 | def validate_index(name, checks, index): |
| 398 | missing = [i for check, i in checks if not re.compile(check).search(index)] |
| 399 | if missing: |
| 400 | plural = "s" if len(missing) > 1 else "" |
| 401 | raise exceptions.InvalidIndexException( |
| 402 | f"Missing item{plural} {', '.join(missing)} in {name}." |
| 403 | ) |
| 404 | |
| 405 | |
| 406 | def validate_layout_type(value): |
nothing calls this directly
no test coverage detected
searching dependent graphs…