We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2085189 commit 2a9091dCopy full SHA for 2a9091d
1 file changed
src/doc.sh
@@ -18,6 +18,12 @@ function bashunit::doc::print_asserts() {
18
local line
19
while IFS='' read -r line || [ -n "$line" ]; do
20
fn=$(echo "$line" | sed -n 's/^## \([A-Za-z0-9_]*\).*/\1/p')
21
+ # Only treat assertion headings as doc entries; skip prose sections
22
+ # like "## Related" that are part of the documentation page but not asserts.
23
+ case "$fn" in
24
+ assert* | bashunit*) ;;
25
+ *) fn="" ;;
26
+ esac
27
if [ -n "$fn" ]; then
28
local _match=0
29
if [ -z "$filter" ]; then
0 commit comments