projectcypress/health-data-standards

View on GitHub
test/unit/hqmf/2.0/document_v2_test.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Method test_roundtrip has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def test_roundtrip
    assert_equal 'foo', @model.id
    assert_equal "Statin Prescribed at Discharge", @model.title.strip
    assert_equal "Acute myocardial infarction (AMI) patients who are prescribed a statin at hospital discharge.", @model.description.strip
    data_criteria = @model.all_data_criteria
Severity: Major
Found in test/unit/hqmf/2.0/document_v2_test.rb - About 3 hrs to fix

    File document_v2_test.rb has 284 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require_relative '../../../test_helper'
    
    class DocumentV2Test < Minitest::Test
      def setup
        # Parse the sample file and convert to the model
    Severity: Minor
    Found in test/unit/hqmf/2.0/document_v2_test.rb - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status