Skip to content

Commit 02ddf4e

Browse files
Add missing LLOC checks
1 parent f9c1454 commit 02ddf4e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/metrics/loc.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ mod tests {
534534
[
535535
(sloc, 10, usize), // The number of lines is 10
536536
(ploc, 7, usize), // The number of code lines is 7
537+
(lloc, 6, usize), // The number of statements is 6
537538
(cloc, 4, usize), // The number of comments is 4
538539
(blank, 1, usize) // The number of blank lines is 1
539540
]
@@ -560,6 +561,7 @@ mod tests {
560561
[
561562
(sloc, 9, usize), // The number of lines is 9
562563
(ploc, 7, usize), // The number of code lines is 7
564+
(lloc, 6, usize), // The number of statements is 6
563565
(cloc, 4, usize), // The number of comments is 4
564566
(blank, 0, usize) // The number of blank lines is 0
565567
]
@@ -587,6 +589,7 @@ mod tests {
587589
[
588590
(sloc, 10, usize), // The number of lines is 10
589591
(ploc, 7, usize), // The number of code lines is 7
592+
(lloc, 6, usize), // The number of statements is 6
590593
(cloc, 5, usize), // The number of comments is 5
591594
(blank, 1, usize) // The number of blank lines is 1
592595
]
@@ -615,6 +618,7 @@ mod tests {
615618
[
616619
(sloc, 11, usize), // The number of lines is 11
617620
(ploc, 8, usize), // The number of code lines is 8
621+
(lloc, 6, usize), // The number of statements is 6
618622
(cloc, 4, usize), // The number of comments is 4
619623
(blank, 1, usize) // The number of blank lines is 1
620624
]
@@ -643,6 +647,7 @@ mod tests {
643647
[
644648
(sloc, 11, usize), // The number of lines is 11
645649
(ploc, 8, usize), // The number of code lines is 8
650+
(lloc, 1, usize), // The number of statements is 1
646651
(cloc, 4, usize), // The number of comments is 4
647652
(blank, 1, usize) // The number of blank lines is 1
648653
]
@@ -671,6 +676,7 @@ mod tests {
671676
[
672677
(sloc, 11, usize), // The number of lines is 11
673678
(ploc, 8, usize), // The number of code lines is 8
679+
(lloc, 6, usize), // The number of statements is 6
674680
(cloc, 4, usize), // The number of comments is 4
675681
(blank, 1, usize) // The number of blank lines is 1
676682
]
@@ -700,6 +706,7 @@ mod tests {
700706
[
701707
(sloc, 12, usize), // The number of lines is 12
702708
(ploc, 8, usize), // The number of code lines is 8
709+
(lloc, 6, usize), // The number of statements is 6
703710
(cloc, 5, usize), // The number of comments is 5
704711
(blank, 1, usize) // The number of blank lines is 1
705712
]
@@ -730,6 +737,7 @@ mod tests {
730737
[
731738
(sloc, 13, usize), // The number of lines is 13
732739
(ploc, 8, usize), // The number of code lines is 8
740+
(lloc, 6, usize), // The number of statements is 6
733741
(cloc, 5, usize), // The number of comments is 5
734742
(blank, 1, usize) // The number of blank lines is 1
735743
]
@@ -757,6 +765,7 @@ mod tests {
757765
[
758766
(sloc, 10, usize), // The number of lines is 10
759767
(ploc, 8, usize), // The number of code lines is 8
768+
(lloc, 6, usize), // The number of statements is 6
760769
(cloc, 3, usize), // The number of comments is 3
761770
(blank, 1, usize) // The number of blank lines is 1
762771
]
@@ -786,6 +795,7 @@ mod tests {
786795
[
787796
(sloc, 12, usize), // The number of lines is 12
788797
(ploc, 8, usize), // The number of code lines is 8
798+
(lloc, 6, usize), // The number of statements is 6
789799
(cloc, 5, usize), // The number of comments is 5
790800
(blank, 1, usize) // The number of blank lines is 1
791801
]

0 commit comments

Comments
 (0)