소스 검색

improve test coverage

kslr 5 년 전
부모
커밋
78729fc698
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      testing/coverage/coverall2

+ 3 - 3
testing/coverage/coverall2

@@ -19,13 +19,13 @@ if [ -f "${TEST_FILES[0]}" ]; then
   test_package ""
 fi
 
-while IFS= read -r -d '' DIR
-do
+# shellcheck disable=SC2044
+for DIR in $(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*"); do
   TEST_FILES=("$DIR"/*_test.go)
   if [ -f "${TEST_FILES[0]}" ]; then
     test_package "/$DIR"
   fi
-done <   <(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*" -print0)
+done
 
 # merge out
 while IFS= read -r -d '' OUT_FILE