(self, threshold=500, default_timeout=300)
| 10 | """A SimpleCache for testing. Copied from Werkzeug.""" |
| 11 | |
| 12 | def __init__(self, threshold=500, default_timeout=300): |
| 13 | self.default_timeout = default_timeout |
| 14 | self._cache = {} |
| 15 | self.clear = self._cache.clear |
| 16 | self._threshold = threshold |
| 17 | |
| 18 | def _prune(self): |
| 19 | if len(self._cache) > self._threshold: |
nothing calls this directly
no outgoing calls
no test coverage detected