@@ -743,15 +743,12 @@ func TestToOpenMetricsMultiple(t *testing.T) {
743
743
# UNIT scc_lines lines
744
744
# HELP scc_lines Number of lines.
745
745
# TYPE scc_code count
746
- # UNIT scc_code lines
747
746
# HELP scc_code Number of lines of actual code.
748
747
# TYPE scc_comments count
749
748
# HELP scc_comments Number of comments.
750
749
# TYPE scc_blanks count
751
- # UNIT scc_blanks lines
752
750
# HELP scc_blanks Number of blank lines.
753
751
# TYPE scc_complexity count
754
- # UNIT scc_complexity lines
755
752
# HELP scc_complexity Code complexity.
756
753
# TYPE scc_bytes count
757
754
# UNIT scc_bytes bytes
@@ -763,6 +760,7 @@ scc_comments{language="Go"} 2000
763
760
scc_blanks{language="Go"} 2000
764
761
scc_complexity{language="Go"} 2000
765
762
scc_bytes{language="Go"} 2000
763
+ # EOF
766
764
`
767
765
768
766
if res != expectedResult {
@@ -979,15 +977,12 @@ func TestFileSummarizeOpenMetrics(t *testing.T) {
979
977
# UNIT scc_lines lines
980
978
# HELP scc_lines Number of lines.
981
979
# TYPE scc_code count
982
- # UNIT scc_code lines
983
980
# HELP scc_code Number of lines of actual code.
984
981
# TYPE scc_comments count
985
982
# HELP scc_comments Number of comments.
986
983
# TYPE scc_blanks count
987
- # UNIT scc_blanks lines
988
984
# HELP scc_blanks Number of blank lines.
989
985
# TYPE scc_complexity count
990
- # UNIT scc_complexity lines
991
986
# HELP scc_complexity Code complexity.
992
987
# TYPE scc_bytes count
993
988
# UNIT scc_bytes bytes
@@ -999,6 +994,7 @@ scc_comments{language="Go"} 1000
999
994
scc_blanks{language="Go"} 1000
1000
995
scc_complexity{language="Go"} 1000
1001
996
scc_bytes{language="Go"} 1000
997
+ # EOF
1002
998
`
1003
999
1004
1000
if res != expectedResult {
@@ -1035,25 +1031,22 @@ func TestFileSummarizeOpenMetricsPerFile(t *testing.T) {
1035
1031
# UNIT scc_lines lines
1036
1032
# HELP scc_lines Number of lines.
1037
1033
# TYPE scc_code count
1038
- # UNIT scc_code lines
1039
1034
# HELP scc_code Number of lines of actual code.
1040
1035
# TYPE scc_comments count
1041
1036
# HELP scc_comments Number of comments.
1042
1037
# TYPE scc_blanks count
1043
- # UNIT scc_blanks lines
1044
1038
# HELP scc_blanks Number of blank lines.
1045
1039
# TYPE scc_complexity count
1046
- # UNIT scc_complexity lines
1047
1040
# HELP scc_complexity Code complexity.
1048
1041
# TYPE scc_bytes count
1049
1042
# UNIT scc_bytes bytes
1050
1043
# HELP scc_bytes Size in bytes.
1051
- scc_lines{language="Go", file="C:\\bbbb.go"} 1000
1052
- scc_code{language="Go", file="C:\\bbbb.go"} 1000
1053
- scc_comments{language="Go", file="C:\\bbbb.go"} 1000
1054
- scc_blanks{language="Go", file="C:\\bbbb.go"} 1000
1055
- scc_complexity{language="Go", file="C:\\bbbb.go"} 1000
1056
- scc_bytes{language="Go", file="C:\\bbbb.go"} 1000
1044
+ scc_lines{language="Go",file="C:\\bbbb.go"} 1000
1045
+ scc_code{language="Go",file="C:\\bbbb.go"} 1000
1046
+ scc_comments{language="Go",file="C:\\bbbb.go"} 1000
1047
+ scc_blanks{language="Go",file="C:\\bbbb.go"} 1000
1048
+ scc_complexity{language="Go",file="C:\\bbbb.go"} 1000
1049
+ scc_bytes{language="Go",file="C:\\bbbb.go"} 1000
1057
1050
`
1058
1051
1059
1052
if res != expectedResult {
0 commit comments