From a120913f9215217d6559fec4b650c9567b731944 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Thu, 2 May 2024 15:40:00 +1000 Subject: [PATCH] beef up tests slightly --- SCC-OUTPUT-REPORT.html | 32 ++++++++++++++++---------------- test-all.sh | 12 +++++++++++- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/SCC-OUTPUT-REPORT.html b/SCC-OUTPUT-REPORT.html index 6847198b8..682c223bd 100644 --- a/SCC-OUTPUT-REPORT.html +++ b/SCC-OUTPUT-REPORT.html @@ -250,6 +250,16 @@ 0 2222 35 + + processor/cocomo_test.go + + 37 + 8 + 4 + 25 + 6 + 699 + 23 processor/bloom.go @@ -261,15 +271,15 @@ 1051 29 - processor/cocomo_test.go + processor/structs_test.go - 37 + 32 8 - 4 - 25 - 6 - 699 + 1 23 + 4 + 517 + 19 processor/helpers.go @@ -280,16 +290,6 @@ 2 544 21 - - processor/structs_test.go - - 32 - 8 - 1 - 23 - 4 - 517 - 19 processor/processor_unix_test.go diff --git a/test-all.sh b/test-all.sh index 80a0d4e83..b0ac70d6d 100755 --- a/test-all.sh +++ b/test-all.sh @@ -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" @@ -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 @@ -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