Browse Source

fix(tool): Fix finding untested APIs for multiple clients

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1114/head
jld3103 1 year ago
parent
commit
36c6656b67
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      tool/find-untested-neon-apis.sh

2
tool/find-untested-neon-apis.sh

@ -4,7 +4,7 @@ cd "$(dirname "$0")/.."
function find_apis() { function find_apis() {
path="$1" 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")") used_apis=("$(find_apis "packages/neon")")

Loading…
Cancel
Save