Closed rozetko closed 5 years ago
Cover detection_model.ts with tests.
detection_model.ts
insertSpan
getIntersectedSpans
getSpanBorders
P.S. insertSpan test doesn't pass. We can't merge RUNNING spans with READY if they're intersected. Though we must merge them if span in the DB is inside the one we want to insert.
RUNNING
READY
Cover
detection_model.ts
with tests.Changes
insertSpan
getIntersectedSpans
getSpanBorders
P.S.
insertSpan
test doesn't pass. We can't mergeRUNNING
spans withREADY
if they're intersected. Though we must merge them if span in the DB is inside the one we want to insert.