summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-10-28 22:36:34 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-10-28 22:36:34 +0300
commite31bc3dcfebe994f41d0ccc8f784adfec568fdcb (patch)
tree3ae627a3868b56e5a2a1dc6fdf2748c9f77ee4bf
parenta047b3e4ed2acaf562097b8ba012335bb7e59fbd (diff)
fix: remove coverage script
-rwxr-xr-xcoverage.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/coverage.sh b/coverage.sh
deleted file mode 100755
index 6849997..0000000
--- a/coverage.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/env sh
-
-fns=$(grep "^(fn[&*] core." core.fnl macros/core.fnl | cut -f2 --delimiter=" " | cut -f2 --delimiter=".")
-tsts=$(
- for fn in $fns; do
- fn=$(echo "$fn" | sed "s/\?/\\\?/")
- grep -o "(testing $fn[^ ]*" core_test.fnl macros_test.fnl | cut -f2 --delimiter=" "
- done
- )
-not_tested=$(printf "%s\n%s\n" "$fns" "$tsts" | sort | uniq -u)
-
-if [ -z "$fns" ]; then
- total_fns=0
-else
- total_fns=$(printf "%s\n" "$fns" | wc -l)
-fi
-
-if [ -z "$not_tested" ]; then
- total_not_tested=0
-else
- total_not_tested=$(printf "%s\n" "$not_tested" | wc -l)
-fi
-
-coverage=$((100 - (("$total_not_tested" * 100) / "$total_fns")))
-
-echo "test coverage: $coverage%" >&2
-
-if [ $coverage -ne 100 ]; then
- echo "not tested functions:" >&2
- echo "$not_tested" | tr '\n' ' ' >&2
- echo >&2
- exit 1
-fi