tests.benchmarking.core_domain   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A AThingIMightNeed.__init__() 0 2 1
A SomeService.__init__() 0 2 1
A AThingIMightNeed.do_it() 0 2 1
A SomeService.do_it() 0 2 1
A SomeOtherThingAsAsingleton.work() 0 2 1
1
class SomeOtherThingAsAsingleton:
2
    def work(self):
3
        return 1
4
5
6
class SomeService:
7
    def __init__(self, other: SomeOtherThingAsAsingleton):
8
        self.other = other
9
10
    def do_it(self):
11
        return self.other.work()
12
13
14
class AThingIMightNeed:
15
    service: SomeService
16
17
    def __init__(self, service: SomeService):
18
        self.service = service
19
20
    def do_it(self):
21
        return self.service.do_it()
22