instance method
print_code_test_stats
Ruby on Rails 8.0.4
Since v8.0.4 PrivateAvailable in: v8.0.4 v8.1.2
Signature
print_code_test_stats()
No documentation comment.
Source
# File railties/lib/rails/code_statistics.rb, line 151
def print_code_test_stats
code = calculate_code
tests = calculate_tests
puts " Code LOC: #{code} Test LOC: #{tests} Code to Test Ratio: 1:#{sprintf("%.1f", tests.to_f / code)}"
puts ""
end
Defined in railties/lib/rails/code_statistics.rb line 151
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::CodeStatistics