Module: DaVinciCRDTestKit::CrossHookHelper
- Included in:
- V221::ClientFHIRPathCollectionAsCommaDelimitedStringTest, V221::ClientPrefetchCompleteAndSubsetTest
- Defined in:
- lib/davinci_crd_test_kit/client/cross_hook_helper.rb
Instance Method Summary collapse
-
#find_completeness_tests ⇒ Object
rubocop:disable Metrics/CyclomaticComplexity.
Instance Method Details
#find_completeness_tests ⇒ Object
rubocop:disable Metrics/CyclomaticComplexity
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/davinci_crd_test_kit/client/cross_hook_helper.rb', line 3 def find_completeness_tests # rubocop:disable Metrics/CyclomaticComplexity # minimal error checking - want it to bomb if this search logic fails hooks_group = self.class.parent.parent.parent.groups.find do |group| group.id.to_s.include?('crd_v221_client_hooks') end completeness_tests = hooks_group.groups.map do |group| group.groups.flat_map(&:tests).find do |test| test.id.to_s.include?('crd_v221_hook_request_prefetch_complete') end end cross_hooks_interaction_group = self.class.parent.parent.groups.find do |group| group.id.to_s.include?('crd_v221_client_cross_hook_interaction') end cross_hooks_completeness_test = cross_hooks_interaction_group.groups.flat_map(&:tests).find do |test| test.id.to_s.include?('crd_v221_hook_request_prefetch_complete') end completeness_tests << cross_hooks_completeness_test completeness_tests.compact end |