diff --git a/bash/go-github_issue_55_find_no_test_struct.sh b/bash/go-github_issue_55_find_no_test_struct.sh new file mode 100644 index 0000000..9fe7d05 --- /dev/null +++ b/bash/go-github_issue_55_find_no_test_struct.sh @@ -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" +)