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

lisa-sgs / commandfile / 16934200895

13 Aug 2025 10:10AM UTC coverage: 95.408% (-3.5%) from 98.907%
16934200895

push

github

teobouvard
Remove unused fixtures

2 of 2 new or added lines in 1 file covered. (100.0%)

9 existing lines in 2 files now uncovered.

187 of 196 relevant lines covered (95.41%)

0.95 hits per line

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

55.56
/src/commandfile/model.py
1
from commandfile.model_generated import (
1✔
2
    Commandfile as BaseCommandfile,
3
)
4
from commandfile.model_generated import (
1✔
5
    Filelist,
6
    Parameter,
7
)
8

9

10
class Commandfile(BaseCommandfile):
1✔
11
    """Extended Commandfile model with helper methods."""
12

13
    def find_parameter(self, key: str) -> Parameter:
1✔
14
        """Find a parameter by its key."""
15
        for param in self.parameters:
1✔
16
            if param.key == key:
1✔
17
                return param
1✔
18
        raise KeyError(f"Parameter {key!r} not found")
1✔
19

20
    def find_input(self, key: str) -> Filelist:
1✔
21
        """Find an input filelist by its key."""
UNCOV
22
        for file_inputs in self.inputs:
×
UNCOV
23
            if file_inputs.key == key:
×
UNCOV
24
                return file_inputs
×
UNCOV
25
        raise KeyError(f"Input filelist {key!r} not found")
×
26

27
    def find_output(self, key: str) -> Filelist:
1✔
28
        """Find an output filelist by its key."""
UNCOV
29
        for file_outputs in self.outputs:
×
UNCOV
30
            if file_outputs.key == key:
×
UNCOV
31
                return file_outputs
×
UNCOV
32
        raise KeyError(f"Output filelist {key!r} not found")
×
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