consolidation / output-formatters

Apply transformations to structured data to write output in different formats.
Other
192 stars 13 forks source link

Add convenience function FormatterOptions::fieldsContain() #105

Closed greg-1-anderson closed 1 year ago

greg-1-anderson commented 1 year ago

Overview

This pull request:

Summary

Adds a convenience method FormatterOptions::fieldsContain() so that callers may determine if a certain field will be included in the output, e.g. so that they can omit calculating slow fields if they were not requested.

codecov[bot] commented 1 year ago

Codecov Report

Merging #105 (0f77805) into 4.x (973242e) will increase coverage by 0.08%. The diff coverage is 85.71%.

:exclamation: Current head 0f77805 differs from pull request most recent head 1780361. Consider uploading reports for the commit 1780361 to get more accurate results

@@             Coverage Diff              @@
##                4.x     #105      +/-   ##
============================================
+ Coverage     91.85%   91.94%   +0.08%     
- Complexity      519      525       +6     
============================================
  Files            50       50              
  Lines          1302     1316      +14     
============================================
+ Hits           1196     1210      +14     
  Misses          106      106              
Impacted Files Coverage Δ
src/Options/FormatterOptions.php 87.69% <85.71%> (+1.48%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more