(cache: Cache)
| 152 | |
| 153 | |
| 154 | def _assert_copilot_cache_empty(cache: Cache) -> None: |
| 155 | cache_backend: Final = cache.cache |
| 156 | assert isinstance(cache_backend, InMemoryCache) |
| 157 | cache_contents: Final[Mapping[str, object]] = cast( # cast-ok: in-memory cache exposes an untyped mapping |
| 158 | Mapping[str, object], |
| 159 | cache_backend.cache_dict, |
| 160 | ) |
| 161 | assert cache_contents == {} |
| 162 | |
| 163 | |
| 164 | def _sync_copilot_cache_call(client: HTTPHandler, stream: bool) -> None: |
no outgoing calls
no test coverage detected