Function
section_text_with_source
(
section_map: dict[str, str],
section: str,
fallback: str = "",
)
Source from the content-addressed store, hash-verified
| 93 | |
| 94 | |
| 95 | def section_text_with_source( |
| 96 | section_map: dict[str, str], |
| 97 | section: str, |
| 98 | fallback: str = "", |
| 99 | ) -> tuple[str, str]: |
| 100 | text = section_map.get(section, "") |
| 101 | if text: |
| 102 | return text, section |
| 103 | if fallback: |
| 104 | return fallback, "abstract" |
| 105 | return "", "" |
| 106 | |
| 107 | |
| 108 | def build_section_extraction_coverage( |
Tested by
no test coverage detected