Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 0% |
1 | """Base classes.""" |
||
8 | class BasePlugin(with_metaclass(ABCMeta)): # pragma: no cover (abstract class) |
||
|
|||
9 | """Base class for coverage plugins.""" |
||
10 | |||
11 | @abstractmethod |
||
12 | def match(self, cwd): |
||
13 | """Determine if the current directory contains coverage data. |
||
14 | |||
15 | :return bool: Indicates the current directory can be processesed. |
||
16 | |||
17 | """ |
||
18 | |||
19 | @abstractmethod |
||
20 | def run(self, cwd): |
||
21 | """Extract the coverage data from the current directory. |
||
22 | |||
23 | :return float: Percentange of lines covered. |
||
24 | |||
25 | """ |
||
26 |
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.