Package lepl :: Package matchers :: Module variables
[hide private]
[frames] | no frames]

Module variables

source code

Display information when matchers that are bound to variables are called.

This is possible thanks to a neat trick suggested by Carl Banks on c.l.p

Functions [hide private]
 
NamedResult(name, matcher, out=stderr) source code
 
_adjust(text, width, pad=False, left=False) source code
 
name(name, show_failures=True, width=80, out=stderr) source code
 
TraceVariables(on=True, show_failures=True, width=80, out=stderr)
Add this as a context (with TraceVariables():) and you will see debug logging indicating how variables are bound during matching.
source code
Function Details [hide private]

NamedResult(name, matcher, out=stderr)

source code 
Decorators:
  • @trampoline_matcher_factory()

TraceVariables(on=True, show_failures=True, width=80, out=stderr)

source code 
Add this as a context (with TraceVariables():) and you will see debug logging indicating how variables are bound during matching.
Decorators:
  • @contextmanager