MCPcopy Index your code
hub / github.com/ipython/ipython / test_side_effects_II

Function test_side_effects_II

tests/test_inputtransformer2.py:427–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425
426
427def test_side_effects_II():
428 count = 0
429
430 def counter(lines):
431 nonlocal count
432 count += 1
433 return lines
434
435 counter.has_side_effects = True
436
437 manager = ipt2.TransformerManager()
438 manager.line_transforms.insert(0, counter)
439 assert manager.check_complete("b=1\n") == ("complete", None)
440 assert count == 0

Callers

nothing calls this directly

Calls 1

check_completeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…