多跳中继链路速率计算性能基准。
| 194 | # --------------------------------------------------------------------------- # |
| 195 | |
| 196 | class TestMultiHopRatePerf: |
| 197 | """多跳中继链路速率计算性能基准。""" |
| 198 | |
| 199 | def test_multi_hop_nominal( |
| 200 | self, benchmark, bench_sat_pos, bench_geo_pos, bench_geo2_pos, bench_gs_ka |
| 201 | ): |
| 202 | """正常参数下的多跳速率。""" |
| 203 | rate = benchmark( |
| 204 | calculate_multi_hop_relay_rate, |
| 205 | bench_sat_pos, bench_geo_pos, bench_geo2_pos, bench_gs_ka, |
| 206 | ) |
| 207 | # multi_hop 无最低速率下限,但应为正数 |
| 208 | assert rate > 0 |
| 209 | |
| 210 | def test_multi_hop_raw_image( |
| 211 | self, benchmark, bench_sat_pos, bench_geo_pos, bench_geo2_pos, bench_gs_ka |
| 212 | ): |
| 213 | """RAW_IMAGE 0.5 折扣下的多跳速率。""" |
| 214 | rate = benchmark( |
| 215 | calculate_multi_hop_relay_rate, |
| 216 | bench_sat_pos, bench_geo_pos, bench_geo2_pos, bench_gs_ka, "RAW_IMAGE", |
| 217 | ) |
| 218 | assert rate > 0 |
| 219 | |
| 220 | |
| 221 | # --------------------------------------------------------------------------- # |
nothing calls this directly
no outgoing calls
no test coverage detected