Closed ekohl closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -0.03
:warning:
Comparison is base (
1c8a717
) 95.23% compared to head (2bfaa90
) 95.20%.:exclamation: Current head 2bfaa90 differs from pull request most recent head 58fa0a4. Consider uploading reports for the commit 58fa0a4 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Test failure is because it no longer does the additional get_facts
call, which was the whole point.
Rather than getting the facts for every filter spec and then discarding that, this stores the found facts in an array and uses that.
This eliminates a call to FacterDB::get_facts with a very complex filter.
A quick test in puppet-nginx reduces loading of tests by about 2 seconds (from ~9 to ~7).
This is a reworked version of https://github.com/voxpupuli/rspec-puppet-facts/pull/124 for a clean changelog. It requires https://github.com/voxpupuli/rspec-puppet-facts/pull/151 to be merged first.