test/test_cli.rb

Summary

Maintainability
B
6 hrs
Test Coverage

File test_cli.rb has 293 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require_relative "helper"
require_relative "helpers/ssl" if ::Puma::HAS_SSL
require_relative "helpers/tmp_path"
require_relative "helpers/test_puma/puma_socket"

Severity: Minor
Found in test/test_cli.rb - About 3 hrs to fix

    Class TestCLI has 24 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class TestCLI < Minitest::Test
      include SSLHelper if ::Puma::HAS_SSL
      include TmpPath
      include TestPuma::PumaSocket
    
    
    Severity: Minor
    Found in test/test_cli.rb - About 2 hrs to fix

      Method test_control_clustered has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def test_control_clustered
          skip_unless :fork
          skip_unless :unix
          url = "unix://#{@tmp_path}"
      
      
      Severity: Minor
      Found in test/test_cli.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status