MCPcopy Create free account
hub / github.com/chaimleib/intervaltree / test_split_overlap

Function test_split_overlap

test/intervaltree_methods/restructure_test.py:585–596  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583
584
585def test_split_overlap():
586 t = IntervalTree.from_tuples(data.ivs1.data)
587
588 t.split_overlaps()
589 t.verify()
590
591 while t:
592 iv = set(t).pop()
593 t.remove(iv)
594 for other in t.overlap(iv):
595 assert other.begin == iv.begin
596 assert other.end == iv.end
597
598
599# -----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 5

from_tuplesMethod · 0.80
split_overlapsMethod · 0.80
overlapMethod · 0.80
verifyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…