Commit e5f2dec
committed
List all custom assertions in submodule readme
This allows you to click on the sub-package on code.dlang.org and get a
list. This is something have now done a few times (instinctively, the
affordance is definitely there for it) but I never found anything and
had to go source diving for the functions.
Extracted with the following commands from the git root dir:
```
PATTERN='^\s*(?:[A-Za-z_@()\s]*\s)?(?:auto|void)\s+(should[A-Z][A-Za-z_0-9]*)'
FILE=subpackages/assertions/source/unit_threaded/assertions.d
rg -P --no-line-number --only-matching --replace '$1' "$PATTERN" "$FILE" \
| awk '!seen[$0]++' \
| sed 's/^/- /'
```1 parent 052b43f commit e5f2dec
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments