Skip to content

Commit 3938893

Browse files
committed
Improve gen_list.sh and update tested-functions-list.md
1 parent a1564b6 commit 3938893

File tree

2 files changed

+99
-98
lines changed

2 files changed

+99
-98
lines changed

tools/funcs_tested/gen_list.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "## List of tested functions" > $outfile
2525
for f in $files
2626
do
2727
echo -e "\n### $f" >> $outfile
28-
echo -e "| Function | Tested? | Search link |" >> $outfile
28+
echo -e "| Function | Tested? | Occurrences |" >> $outfile
2929
echo -e "| -------- | ------- | ----------- |" >> $outfile
3030

3131
# This will produce a list of funcName:funcLine, which we'll parse in the for loop below.
@@ -44,8 +44,9 @@ do
4444
searchLink=""
4545
else
4646
((totalTested++))
47-
foundStr="YES (x$count)"
48-
searchLink="[occurrences](https://github.com/search?q=${func}+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)"
47+
[[ "$count" == "1" ]] && plural="" || plural="s"
48+
foundStr="YES"
49+
searchLink="[in $count file${plural}](https://github.com/search?q=${func}+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)"
4950
fi
5051
echo -e "| [\`${func}\`](/${f}#L${line}) | $foundStr | $searchLink" >> $outfile
5152
done

0 commit comments

Comments
 (0)