| 51 | |
| 52 | |
| 53 | class EmptyResults: |
| 54 | hits = 0 |
| 55 | docs = [] |
| 56 | |
| 57 | def __len__(self): |
| 58 | return 0 |
| 59 | |
| 60 | def __getitem__(self, k): |
| 61 | if isinstance(k, slice): |
| 62 | return [] |
| 63 | else: |
| 64 | raise IndexError("It's not here.") |
| 65 | |
| 66 | |
| 67 | class BaseSearchBackend: |
no outgoing calls
no test coverage detected
searching dependent graphs…