Skip to content

Commit

Permalink
beef up tests slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed May 2, 2024
1 parent d8d3c7b commit a120913
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
32 changes: 16 additions & 16 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@
<td>0</td>
<td>2222</td>
<td>35</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
<td>37</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>699</td>
<td>23</td>
</tr><tr>
<td>processor/bloom.go</td>
<td></td>
Expand All @@ -261,15 +271,15 @@
<td>1051</td>
<td>29</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td>processor/structs_test.go</td>
<td></td>
<td>37</td>
<td>32</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>699</td>
<td>1</td>
<td>23</td>
<td>4</td>
<td>517</td>
<td>19</td>
</tr><tr>
<td>processor/helpers.go</td>
<td></td>
Expand All @@ -280,16 +290,6 @@
<td>2</td>
<td>544</td>
<td>21</td>
</tr><tr>
<td>processor/structs_test.go</td>
<td></td>
<td>32</td>
<td>8</td>
<td>1</td>
<td>23</td>
<td>4</td>
<td>517</td>
<td>19</td>
</tr><tr>
<td>processor/processor_unix_test.go</td>
<td></td>
Expand Down
12 changes: 11 additions & 1 deletion test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ else
exit
fi

./scc --format-multi "tabular:output.tab,wide:output.wide,json:output.json,csv:output.csv,cloc-yaml:output.yaml,html:output.html,html-table:output.html2,sql:output.sql"
./scc --format-multi "tabular:output.tab,wide:output.wide,json:output.json,json2:output2.json,csv:output.csv,cloc-yaml:output.yaml,html:output.html,html-table:output.html2,sql:output.sql"

if test -f output.tab; then
echo -e "${GREEN}PASSED output.tab check"
Expand Down Expand Up @@ -757,6 +757,15 @@ else
exit
fi

if test -f output2.json; then
echo -e "${GREEN}PASSED output2.json check"
else
echo -e "${RED}======================================================="
echo -e "FAILED output2.json check"
echo -e "=======================================================${NC}"
exit
fi

if test -f output.yaml; then
echo -e "${GREEN}PASSED output.yaml check"
else
Expand Down Expand Up @@ -961,6 +970,7 @@ rm ./examples/ignore/ignorefile.txt
rm ./output.tab
rm ./output.wide
rm ./output.json
rm ./output2.json
rm ./output.csv
rm ./output.yaml
rm ./output.html
Expand Down

0 comments on commit a120913

Please sign in to comment.