MCPcopy Create free account
hub / github.com/Qinbf/groundmap / test_outline_section_count

Method test_outline_section_count

scripts/tests/test_postprocess.py:136–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 assert "doc_paragraphs" in outline
135
136 def test_outline_section_count(self):
137 text = "# H1\n\n## H2a\n\nbody\n\n## H2b\n\nmore\n"
138 _, outline = process(text, "test.md")
139 # 顶层一个 H1
140 assert len(outline["sections"]) == 1
141 # H1 有两个 H2 子节
142 assert len(outline["sections"][0]["children"]) == 2
143
144 def test_outline_preserves_existing_summaries(self):
145 """关键不变量(c85d28f 修复的 bug):重跑 build_outline_data

Callers

nothing calls this directly

Calls 1

processFunction · 0.90

Tested by

no test coverage detected