method

print_code_test_stats

rails latest stable - Class: Rails::CodeStatistics

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

print_code_test_stats()
private

No documentation available.

# 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