Behaviour SwRS-MDOKFSTUDIO-DIAG-061
Includes nest at most 8 deep, 64 files and 1 MiB
When a built-in diagram includes files, the page SHALL refuse the include that passes 8 levels of nesting, 64 distinct files or 1 MiB of text, and stop at an include cycle, with a reason shown on the diagram.
Another outcome at step 1 of path 1 in StRS-MDOKFSTUDIO-DIAG-009, in the state “A diagram includes a local file”.
Scenarios 3
The situations the tests check; open one to read it.
nominalEighth level
Givena chain of eight nested includes
Whenthe diagram is drawn
Thenall eight files are read and the picture is drawn
boundaryLimits of one diagram
Each limit refuses the include that crosses it; the reason is shown on the diagram.
| Input | Outcome |
|---|---|
| Chain of nine nested includes | the ninth file is refused with the reason that the file is nested deeper than 8 includes, and the diagram shows it |
| 65 distinct includes | the 65th is refused with the reason that a diagram includes at most 64 files |
| Same file included twice from the same file | the file counts once (the count is of distinct requests) |
| Included files that together pass 1 MiB of text (the diagram's own text counts toward the limit) | the include that crosses the limit is refused with the reason that the diagram with its included files exceeds the 1 MiB preview limit |
| One large file included twice | its text is counted once |
refusalInclude cycle
| Input | Outcome |
|---|---|
| File a includes file b which includes file a | the diagram shows the reason that the file includes itself (an include cycle), naming the file, and does not loop |
| A {uml} diagram file that includes itself | the same cycle reason is shown |
Implemented in 1
Tested by 1
Replaces
SwRS-MDOKFSTUDIO-DIAG-062A diagram includes at most 64 files superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file
SwRS-MDOKFSTUDIO-DIAG-063A diagram and its includes hold at most 1 MiB of text superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file
SwRS-MDOKFSTUDIO-DIAG-064An include cycle stops with a message superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file