ProcessingLocalTestBear.run()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
import time
2
3
from coalib.bears.LocalBear import LocalBear
4
from coalib.results.Result import Result
5
6
7
class ProcessingLocalTestBear(LocalBear):  # pragma: no cover
8
9
    def run(self, filename, file):
10
        # we need to test that the SectionExecutor holds back the global
11
        # results until processing of all local ones is finished
12
        time.sleep(0.05)
13
        return [Result("LocalTestBear", "test msg")]
14