mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-08 03:07:47 -05:00
improve test coverage
This commit is contained in:
parent
8dc133c4c6
commit
78729fc698
@ -19,13 +19,13 @@ if [ -f "${TEST_FILES[0]}" ]; then
|
|||||||
test_package ""
|
test_package ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while IFS= read -r -d '' DIR
|
# shellcheck disable=SC2044
|
||||||
do
|
for DIR in $(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*"); do
|
||||||
TEST_FILES=("$DIR"/*_test.go)
|
TEST_FILES=("$DIR"/*_test.go)
|
||||||
if [ -f "${TEST_FILES[0]}" ]; then
|
if [ -f "${TEST_FILES[0]}" ]; then
|
||||||
test_package "/$DIR"
|
test_package "/$DIR"
|
||||||
fi
|
fi
|
||||||
done < <(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*" -print0)
|
done
|
||||||
|
|
||||||
# merge out
|
# merge out
|
||||||
while IFS= read -r -d '' OUT_FILE
|
while IFS= read -r -d '' OUT_FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user