(self, spec: str)
| 203 | class DummyConsole: |
| 204 | @command.command("view.flows.resolve") |
| 205 | def resolve(self, spec: str) -> Sequence[flow.Flow]: |
| 206 | if spec == "err": |
| 207 | raise mitmproxy.exceptions.CommandError() |
| 208 | try: |
| 209 | n = int(spec) |
| 210 | except ValueError: |
| 211 | n = 1 |
| 212 | return [tflow.tflow(resp=True)] * n |
| 213 | |
| 214 | @command.command("cut") |
| 215 | def cut(self, spec: str) -> mitmproxy.types.Data: |
no outgoing calls
no test coverage detected