Use case StRS-MDOKFSTUDIO-CORE-003
A reader sees what cannot be rendered and keeps a usable preview
Writers need to know what the preview leaves out, so that a gap is never mistaken for an empty result, and need the preview to stay trustworthy while they type and when something goes wrong.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: A render fails after a good one path 2: A construct needs a full build, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: A render fails after a good one
- The preview shows a good renderSwRS-MDOKFSTUDIO-CORE-025 the very first render failsSwRS-MDOKFSTUDIO-CORE-008 an image whose file is missing is keptSwRS-MDOKFSTUDIO-CORE-025 · 4 tests the next render fails and the status region lists each diagnostic while the previous page stays
- The last good page stays with the diagnostics listed
Path 2: A construct needs a full build
- The preview shows a good renderSwRS-MDOKFSTUDIO-CORE-022 · 6 tests an unknown directive or another construct that only a build resolves shows an inert placeholder with a warning
- A placeholder with a warning stands in its place
This map has 12 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 15 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-CORE-001The preview renders the unsaved buffer in process and keeps the newest edit not on the map3 testsSwRS-MDOKFSTUDIO-CORE-008Images fit the column, sit on the line and survive a missing file 4 testsSwRS-MDOKFSTUDIO-CORE-012An include is expanded in place and mapped to its directive not on the map3 testsSwRS-MDOKFSTUDIO-CORE-013Includes are bounded by depth, budget, size and allowed roots not on the map9 testsSwRS-MDOKFSTUDIO-CORE-022Build-dependent constructs show an inert placeholder with a warning 6 testsSwRS-MDOKFSTUDIO-CORE-025A failed render keeps the previous page and lists its diagnostics 4 tests
SwRS-MDOKFSTUDIO-CORE-009Keep an image whose file is missing superseded superseded by SwRS-MDOKFSTUDIO-CORE-008 Markdown file
SwRS-MDOKFSTUDIO-CORE-014Keep unsupported include forms as placeholders superseded superseded by SwRS-MDOKFSTUDIO-CORE-012 Markdown file
SwRS-MDOKFSTUDIO-CORE-016Limit the include budget per render superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-018Refuse includes outside the allowed roots superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-019Warn about a missing included file superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-023List a warning for an unavailable directive superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-024List diagnostics with file, line and severity superseded superseded by SwRS-MDOKFSTUDIO-CORE-025 Markdown file
SwRS-MDOKFSTUDIO-CORE-026Cancel a superseded render superseded superseded by SwRS-MDOKFSTUDIO-CORE-001 Markdown file
SwRS-MDOKFSTUDIO-CORE-036Style placeholders as inert superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-047Show a citation as an unresolved placeholder superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-067Refuse oversize included files superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file