Test that decorators work correctly
()
| 356 | |
| 357 | |
| 358 | def test_decorator_functionality(): |
| 359 | """Test that decorators work correctly""" |
| 360 | |
| 361 | # Test that decorated classes are properly wrapped |
| 362 | visitor = SimpleExprCounter() |
| 363 | assert hasattr(visitor, "_outer") # Should have the wrapper functionality |
| 364 | |
| 365 | mutator = VariableReplacer({}) |
| 366 | assert hasattr(mutator, "_outer") |
| 367 | |
| 368 | |
| 369 | def test_empty_expressions(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…