• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Clinical-Genomics / cg / 10179980459

31 Jul 2024 12:14PM UTC coverage: 83.284%. First build
10179980459

Pull #3487

github

web-flow
Merge 2a64a106f into eec50e6da
Pull Request #3487: add error handlers pacbio flow

54 of 59 new or added lines in 10 files covered. (91.53%)

16766 of 20131 relevant lines covered (83.28%)

1.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/cg/services/post_processing/validators.py
1
from pathlib import Path
1✔
2

3

4
def validate_name_pre_fix(run_name: str, pre_fix: str) -> None:
1✔
5
    if not run_name.startswith(pre_fix):
1✔
6
        raise ValueError(f"Run name does not start with {pre_fix}")
1✔
7

8

9
def validate_has_expected_parts(run_name: str, expected_parts: int) -> None:
1✔
10
    if len(run_name.split("/")) != expected_parts:
1✔
11
        raise ValueError(f"Run name does not have number of expected parts {expected_parts}.")
1✔
12

13

14
def validate_files_exist(files: list[Path]) -> None:
1✔
15
    """Validate that all files in the list exist."""
16
    for file in files:
1✔
17
        if not file.exists():
1✔
NEW
18
            raise FileNotFoundError(f"File {file.as_posix()} does not exist")
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc