From 36c6656b672fbbfe199e7fa415d95ba471332583 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 1 Nov 2023 12:31:20 +0100 Subject: [PATCH] fix(tool): Fix finding untested APIs for multiple clients Signed-off-by: jld3103 --- tool/find-untested-neon-apis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/find-untested-neon-apis.sh b/tool/find-untested-neon-apis.sh index cecb299c..ed2e8e17 100755 --- a/tool/find-untested-neon-apis.sh +++ b/tool/find-untested-neon-apis.sh @@ -4,7 +4,7 @@ cd "$(dirname "$0")/.." function find_apis() { path="$1" - grep -r "$path" --include "*\.dart" -e "client\.[^.]*.[^(]*(" -oh | sed "s/^client\.//" | sed "s/($//" | sed "s/Raw$//" | grep -v "^executeRawRequest" | sort | uniq + grep -r "$path" --include "*\.dart" -e "client\([0-9]\)\?\.[^.]*.[^(]*(" -oh | sed "s/^client\([0-9]\)\?\.//" | sed "s/($//" | sed "s/Raw$//" | grep -v "^executeRawRequest" | sort | uniq } used_apis=("$(find_apis "packages/neon")")