ProcessingLocalTestBear   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
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