直连链路速率计算性能基准。
| 153 | # --------------------------------------------------------------------------- # |
| 154 | |
| 155 | class TestDirectRatePerf: |
| 156 | """直连链路速率计算性能基准。""" |
| 157 | |
| 158 | def test_direct_rate_ka(self, benchmark, bench_sat_pos, bench_gs_ka): |
| 159 | """Ka 天线直连速率。""" |
| 160 | rate = benchmark(calculate_direct_rate, bench_sat_pos, bench_gs_ka) |
| 161 | assert rate >= 5.0 |
| 162 | |
| 163 | def test_direct_rate_x(self, benchmark, bench_sat_pos, bench_gs_x): |
| 164 | """X 天线直连速率。""" |
| 165 | rate = benchmark(calculate_direct_rate, bench_sat_pos, bench_gs_x) |
| 166 | assert rate >= 5.0 |
| 167 | |
| 168 | def test_direct_rate_raw_image_discount(self, benchmark, bench_sat_pos, bench_gs_ka): |
| 169 | """RAW_IMAGE 0.6 折扣下的直连速率。""" |
| 170 | rate = benchmark(calculate_direct_rate, bench_sat_pos, bench_gs_ka, "RAW_IMAGE") |
| 171 | assert rate >= 5.0 |
| 172 | |
| 173 | |
| 174 | # --------------------------------------------------------------------------- # |
nothing calls this directly
no outgoing calls
no test coverage detected