Skip to content

Commit 6d7427a

Browse files
authored
Merge pull request #19 from geeknees/patch-1
Add methods for calculating M/C and LOC/M
2 parents 82a963c + 787686a commit 6d7427a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
class ApplicationController < ActionController::Base
22
include Pagy::Backend
3+
4+
def hello
5+
p hello
6+
end
37
end

test/lib/rails_stats/code_statistics_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
+----------------------+---------+---------+---------+---------+-----+-------+
1111
| Channels | 8 | 8 | 2 | 0 | 0 | 0 |
1212
| Configuration | 417 | 111 | 1 | 0 | 0 | 0 |
13-
| Controllers | 3 | 3 | 1 | 0 | 0 | 0 |
13+
| Controllers | 7 | 6 | 1 | 1 | 1 | 4 |
1414
| Helpers | 3 | 3 | 0 | 0 | 0 | 0 |
1515
| Javascripts | 27 | 7 | 0 | 0 | 0 | 0 |
1616
| Jobs | 7 | 2 | 1 | 0 | 0 | 0 |
1717
| Mailers | 4 | 4 | 1 | 0 | 0 | 0 |
1818
| Models | 3 | 3 | 1 | 0 | 0 | 0 |
1919
+----------------------+---------+---------+---------+---------+-----+-------+
20-
| Code | 472 | 141 | 7 | 0 | 0 | 0 |
20+
| Code | 476 | 144 | 7 | 1 | 0 | 142 |
2121
| Tests | 0 | 0 | 0 | 0 | 0 | 0 |
22-
| Total | 472 | 141 | 7 | 0 | 0 | 0 |
22+
| Total | 476 | 144 | 7 | 1 | 0 | 142 |
2323
+----------------------+---------+---------+---------+---------+-----+-------+
24-
Code LOC: 141 Test LOC: 0 Code to Test Ratio: 1:0.0
24+
Code LOC: 144 Test LOC: 0 Code to Test Ratio: 1:0.0
2525
2626
EOS
2727

0 commit comments

Comments
 (0)