scottwillson/racing_on_rails

View on GitHub
test_ruby/models/calculations/v3/map_source_results_to_results_test.rb

Summary

Maintainability
C
1 day
Test Coverage

Method test_group_by_age has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def test_group_by_age
        source_results = []
        athena = Models::Category.new("Athena")
        clydesdale = Models::Category.new("Clydesdale")
        men_5 = Models::Category.new("Men 5")

    File map_source_results_to_results_test.rb has 281 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require_relative "../v3"
    
    module Calculations
      module V3
        # :stopdoc:

      Method test_group_by_category has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            def test_group_by_category
              source_results = []
              masters_men = Models::Category.new("Masters Men")
              junior_women = Models::Category.new("Junior Women")
              rejected_category = Models::Category.new("Category 3")

        Method test_group_by_participant_id has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              def test_group_by_participant_id
                source_results = []
                category = Models::Category.new("Masters Men")
        
                participant_1 = Models::Participant.new(0)

          Method test_match_equivalent_categories has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                def test_match_equivalent_categories
                  source_results = []
                  masters_men = Models::Category.new("Masters Men")
                  masters_30 = Models::Category.new("Masters 30+")
                  junior_women = Models::Category.new("Junior Women")

            There are no issues that match your filters.

            Category
            Status