MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_before

Function test_before

tests/tests/test_timeline.py:259–276  ·  view source on GitHub ↗
(make_timeline)

Source from the content-addressed store, hash-verified

257
258
259def test_before(make_timeline):
260 timeline, _ = make_timeline()
261 t = timeline.beginning
262
263 first = timeline.mark("first")
264 timeline.mark("second")
265
266 with timeline.frozen():
267 assert t >> Mark("second") >> Mark("first") not in timeline
268 assert Mark("second") >> first not in timeline
269
270 third = timeline.mark("third")
271
272 with timeline.frozen():
273 assert t >> Mark("second") >> Mark("first") not in timeline
274 assert Mark("second") >> first not in timeline
275 assert t >> Mark("second") >> Mark("third") in timeline
276 assert Mark("second") >> third in timeline
277
278
279def test_and(make_timeline):

Callers

nothing calls this directly

Calls 4

MarkFunction · 0.90
make_timelineFunction · 0.85
markMethod · 0.80
frozenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…