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

Function test_visibility_pure_function

tests/test_engine_factory.py:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_visibility_pure_function():
22 overhead = {"lat": 39.9, "lon": 116.4, "alt": 500000}
23 gs = {"lat": 39.9, "lon": 116.4, "antenna_type": "Ka"}
24 assert orbit.check_visibility(overhead, gs) is True # 正上方可见
25 far = {"lat": -39.9, "lon": -63.6, "alt": 500000}
26 assert orbit.check_visibility(far, gs) is False # 对跖点不可见
27
28
29def test_submit_request_returns_dict_contract():

Callers

nothing calls this directly

Calls 1

check_visibilityMethod · 0.80

Tested by

no test coverage detected