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

Function test_side_effects_I

tests/test_inputtransformer2.py:411–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409
410
411def test_side_effects_I():
412 count = 0
413
414 def counter(lines):
415 nonlocal count
416 count += 1
417 return lines
418
419 counter.has_side_effects = True
420
421 manager = ipt2.TransformerManager()
422 manager.cleanup_transforms.insert(0, counter)
423 assert manager.check_complete("a=1\n") == ("complete", None)
424 assert count == 0
425
426
427def test_side_effects_II():

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…