Skip to content

Commit 50a0f28

Browse files
committed
add basic tests for FLines queries
1 parent f0d1498 commit 50a0f28

9 files changed

Lines changed: 81 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| FLines.rb:0:0:0:0 | FLines.rb | 25 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/metrics/FLines.ql
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# frozen_string_literal: true
2+
3+
class FLinesTest
4+
5+
def foo
6+
# This is a comment
7+
# and another
8+
9+
some_string = <<-ESCAPE
10+
hello world
11+
multiple
12+
lines
13+
14+
how many lines of code in this heredoc?
15+
# 9 lines total
16+
17+
ESCAPE
18+
19+
p some_string
20+
21+
7
22+
end
23+
24+
25+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| FLinesOfCode.rb:0:0:0:0 | FLinesOfCode.rb | 15 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/metrics/FLinesOfCode.ql
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# frozen_string_literal: true
2+
3+
class FLinesTest
4+
5+
def foo
6+
# This is a comment
7+
# and another
8+
9+
some_string = <<-ESCAPE
10+
hello world
11+
multiple
12+
lines
13+
14+
how many lines of code in this heredoc?
15+
# 9 lines total
16+
17+
ESCAPE
18+
19+
p some_string
20+
21+
7
22+
end
23+
24+
25+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| FLinesOfComments.rb:0:0:0:0 | FLinesOfComments.rb | 3 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/metrics/FLinesOfComments.ql
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# frozen_string_literal: true
2+
3+
class FLinesTest
4+
5+
def foo
6+
# This is a comment
7+
# and another
8+
9+
some_string = <<-ESCAPE
10+
hello world
11+
multiple
12+
lines
13+
14+
how many lines of code in this heredoc?
15+
# 9 lines total
16+
17+
ESCAPE
18+
19+
p some_string
20+
21+
7
22+
end
23+
24+
25+
end

0 commit comments

Comments
 (0)