(self)
| 256 | """update_ground_station_count 的边界与夹紧行为。""" |
| 257 | |
| 258 | def test_increase_count(self): |
| 259 | eng = _make_engine() |
| 260 | initial = len(eng.ground_stations) |
| 261 | new_count = min(initial + 5, MAX_GROUND_STATION_COUNT) |
| 262 | if new_count != initial: |
| 263 | result = eng.update_ground_station_count(new_count) |
| 264 | assert isinstance(result, bool) |
| 265 | |
| 266 | def test_count_below_min_is_clamped(self): |
| 267 | """传入低于最小值的计数,引擎应夹紧到最小值而非崩溃。""" |
nothing calls this directly
no test coverage detected