Skip to content

Commit c6b6a83

Browse files
committed
extend FLines* tests
1 parent a1c91e2 commit c6b6a83

5 files changed

Lines changed: 17 additions & 5 deletions

File tree

ql/test/query-tests/metrics/FLines/Empty.rb

Whitespace-only changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
| FLines.rb:0:0:0:0 | FLines.rb | 25 |
1+
| FLines.rb:0:0:0:0 | FLines.rb | 34 |
2+
| Empty.rb:0:0:0:0 | Empty.rb | 0 |

ql/test/query-tests/metrics/FLines/FLines.rb

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# frozen_string_literal: true
22

3+
=begin
4+
some preprocessing here
5+
and here
6+
=end
7+
38
class FLinesTest
49

5-
def foo
10+
def foo(bar)
611
# This is a comment
712
# and another
813

@@ -16,9 +21,13 @@ def foo
1621
1722
ESCAPE
1823

24+
some_other_string = "line 1
25+
line" + bar
26+
1927
p some_string
28+
p some_other_string
2029

21-
7
30+
some_string + some_other_string
2231
end
2332

2433

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
| FLines.rb:0:0:0:0 | FLines.rb | 15 |
1+
| FLines.rb:0:0:0:0 | FLines.rb | 18 |
2+
| Empty.rb:0:0:0:0 | Empty.rb | 0 |
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
| FLines.rb:0:0:0:0 | FLines.rb | 3 |
1+
| FLines.rb:0:0:0:0 | FLines.rb | 7 |
2+
| Empty.rb:0:0:0:0 | Empty.rb | 0 |

0 commit comments

Comments
 (0)