Skip to content

Commit

Permalink
bash: go-github find struct without test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandanChainani committed Mar 17, 2023
1 parent a43db6a commit fa1e6fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bash/go-github_issue_55_find_no_test_struct.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
while read -r line; do
structName=$(echo $line | cut -d ' ' -f 2)
fileName=$(echo $line | cut -d ':' -f 1)
f=$(grep -i $structName"_Marshal" github/*_test.go)
if [[ -z $f ]]; then
echo $fileName, $structName
fi
done < <(
grep -i 'struct' github/* | grep ":type"
)

0 comments on commit fa1e6fb

Please sign in to comment.