MCPcopy Create free account
hub / github.com/Open-Quant/openquant / getRelatedSections

Function getRelatedSections

docs-site/src/data/afmlDocs.ts:34–41  ·  view source on GitHub ↗
(moduleName: string)

Source from the content-addressed store, hash-verified

32}
33
34export function getRelatedSections(moduleName: string): AfmlSection[] {
35 const sections = getSectionsByModule(moduleName);
36 if (sections.length === 0) {
37 return [];
38 }
39 const chapters = new Set(sections.map((section) => section.chapter));
40 return flatSections.filter((candidate) => chapters.has(candidate.chapter) && candidate.module !== moduleName);
41}
42
43export function chapterCoverage() {
44 return afmlDocsState.chapters.map((chapter) => {

Callers

nothing calls this directly

Calls 1

getSectionsByModuleFunction · 0.85

Tested by

no test coverage detected