[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
import unittest
|
||||
|
||||
from resolve_route import parse_code_map
|
||||
|
||||
|
||||
class ParseCodeMapTests(unittest.TestCase):
|
||||
def test_resolves_requested_identifiers_and_strips_comments(self):
|
||||
text = """
|
||||
REPO-001-WEB=https://example.invalid/fifth-domain
|
||||
ICE-GL-ZY001=eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/INDEX.hdlp # current
|
||||
LL-004=tcs-core/LL-004-LAKE-LAMP-WAKE-PATH.hdlp
|
||||
"""
|
||||
|
||||
self.assertEqual(
|
||||
parse_code_map(text, ("ICE-GL-ZY001", "LL-004")),
|
||||
{
|
||||
"ICE-GL-ZY001": "eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/INDEX.hdlp",
|
||||
"LL-004": "tcs-core/LL-004-LAKE-LAMP-WAKE-PATH.hdlp",
|
||||
},
|
||||
)
|
||||
|
||||
def test_ignores_unrequested_identifiers(self):
|
||||
self.assertEqual(parse_code_map("OTHER=some/path", ("LL-004",)), {})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Reference in a new issue