TestTerminal   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 8
Bugs 1 Features 0
Metric Value
c 8
b 1
f 0
dl 0
loc 14
rs 10
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_synergy_object_manager() 0 2 1
A __init__() 0 2 1
A receive() 0 3 2
1
from synergine.core.connection.Terminal import Terminal
2
3
4
class TestTerminal(Terminal):
5
    _name = 'tests_test'
6
    receive_callback = None
7
8
    def __init__(self, config, context, synergy_manager):
9
        super().__init__(config, context, synergy_manager)
10
11
    # TODO: inutile non ?
12
    def receive(self, actions_done):
13
        if self.receive_callback:
14
            self.receive_callback(self, actions_done)
15
16
    def get_synergy_object_manager(self):
17
        return self._synergy_manager