Test Failed
Push — master ( 701a71...4aff4f )
by Antonio
04:10 queued 13s
created

build.utils   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A emit_event() 0 5 1
1
"""Utility functions."""
2
from kytos.core.events import KytosEvent
3
4
5
def emit_event(controller, name, **kwargs):
6
    """Send an event when something happens with an EVC."""
7
    event_name = f'kytos/mef_eline.{name}'
8
    event = KytosEvent(name=event_name, content=kwargs)
9
    controller.buffers.app.put(event)
10