(r: RouteRecord)
| 220 | |
| 221 | |
| 222 | def _effective_cost(r: RouteRecord) -> float: |
| 223 | main_cost = r.actual_cost if r.actual_cost is not None else r.estimated_cost |
| 224 | side_cost = r.sidechannel_actual_cost if r.sidechannel_actual_cost is not None else r.sidechannel_estimated_cost |
| 225 | return main_cost + side_cost |
| 226 | |
| 227 | |
| 228 | def _baseline_cost(r: RouteRecord) -> float: |
no outgoing calls
no test coverage detected