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

Function test_span

test/intervaltree_methods/query_test.py:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159
160def test_span():
161 e = IntervalTree()
162 assert e.span() == 0
163
164 t = IntervalTree.from_tuples(data.ivs1.data)
165 assert t.span() == t.end() - t.begin()
166 assert t.span() == 14
167
168
169if __name__ == "__main__":

Callers

nothing calls this directly

Calls 5

spanMethod · 0.95
IntervalTreeClass · 0.90
from_tuplesMethod · 0.80
endMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…