Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import abc |
||
7 | class BaseReportBackend: |
||
8 | __metaclass__ = abc.ABCMeta |
||
9 | |||
10 | def __init__(self, config): |
||
11 | self.verbose = config.getoption("benchmark_verbose") |
||
12 | self.logger = Logger(self.verbose, config) |
||
13 | self.config = config |
||
14 | self.machine_id = get_machine_id() |
||
15 | self.save = config.getoption("benchmark_save") |
||
16 | self.autosave = config.getoption("benchmark_autosave") |
||
17 | self.save_data = config.getoption("benchmark_save_data") |
||
18 | self.json = config.getoption("benchmark_json") |
||
19 | self.compare = config.getoption("benchmark_compare") |
||
20 | |||
21 | |||
22 | @abc.abstractmethod |
||
23 | def handle_saving(self, benchmarks, machine_info): |
||
24 | pass |
||
25 | |||
26 | @abc.abstractmethod |
||
27 | def handle_loading(self, machine_info): |
||
28 | pass |
||
29 | |||
30 |