Skip to content

Commit

Permalink
rm class vars for cql testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rpassas committed Oct 18, 2024
1 parent 7628751 commit bd06e9d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/davinci_dtr_test_kit/cql_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,21 @@ def cql_presence
end

def cqf_reference_libraries
@cqf_reference_libraries ||= Set.new
scratch[:cqf_reference_libraries] ||= Set.new
end

def library_urls
@@library_urls ||= Set.new
scratch[:library_urls] ||= Set.new
end

def library_names
@@library_names ||= Set.new
scratch[:library_names] ||= Set.new
end

def found_questionnaire
@found_questionnaire ||= false
end

def found_bad_library_reference
@@found_bad_library_reference ||= false
end

def found_duplicate_library_name
@found_duplicate_library_name ||= false
end
Expand Down Expand Up @@ -129,7 +125,6 @@ def questionnaire_items_test(response, final_cql_test)
begin
assert found_questionnaire, 'No questionnaires found.'
assert !found_non_cql_expression, 'Found non-cql expression.'
assert !found_bad_library_reference, 'Found expression with no or incorrect reference to library name.'
assert extension_presence.value?(true), 'No extensions found. Questionnaire must demonstrate prepopulation.'
assert cql_presence['init_expression'], 'Initial expression logic not written in CQL.'
assert cql_presence['candidate_expression'], 'Candidate expression logic not written in CQL.'
Expand Down

0 comments on commit bd06e9d

Please sign in to comment.