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

Clinical-Genomics / cg / 10162085953

30 Jul 2024 12:12PM UTC coverage: 84.403%. First build
10162085953

Pull #3487

github

web-flow
Merge a56ac7a6b into 8380cf2de
Pull Request #3487: add error handlers pacbio flow

46 of 68 new or added lines in 11 files covered. (67.65%)

21121 of 25024 relevant lines covered (84.4%)

0.84 hits per line

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

72.73
/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✔
NEW
6
        raise ValueError(f"Run name does not start with {pre_fix}")
×
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✔
NEW
11
        raise ValueError(f"Run name does not have number of expected parts {expected_parts}.")
×
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