[test][page-templates] Cover lookupTemplate catch->not_found anti-leak, soft-deleted source, cap test, onlyTemplates #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From review of #17 (merged to develop).
Test gaps:
catchbranch inlookupTemplate(transclusion.service.ts) that returnsnot_foundinstead of raw content when comment-mark stripping fails is security-relevant and untested.page-template-access.spec.tshas no case fornot_foundof a soft-deleted source resolved through the realfilterViewerAccessiblePageIds(only the lookup spec covers it with a stubbed filter).honours <=50 capactually only exercises dedup (the cap lives in the DTO and is not engaged here) — rename/clarify or add a real cap test.onlyTemplatessearch filter (search.service.ts) is untested.Severity: medium/low.