lib/rspec-puppet/coverage.rb
# add all resources from catalog declared in module test_module
add all resources from catalog declared in module test_module
add all resources from catalog declared in module test_module
def add_from_catalog(catalog, test_module)
      coverable_resources = catalog.to_a.select { |resource| !filter_resource?(resource, test_module) }
      coverable_resources.each do |resource|
        add(resource)
      end
    end
def add_from_catalog ( catalog , test_module ) coverable_resources = catalog . to_a . select { | resource | ! filter_resource? ( resource , test_module ) } coverable_resources . each do | resource | add ( resource ) end end
add all resources from catalog declared in module test_module
add all resources from catalog declared in module test_module
catalog
<not_specific>
test_module
<not_specific>