MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_increase_count

Method test_increase_count

tests/test_core.py:258–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 """传入低于最小值的计数,引擎应夹紧到最小值而非崩溃。"""

Callers

nothing calls this directly

Calls 2

_make_engineFunction · 0.70

Tested by

no test coverage detected