Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/303 polymophism in filters #1097

Merged
merged 6 commits into from
Jul 22, 2022
Merged

Conversation

christianlupus
Copy link
Collaborator

Closes #303

This is mainly a refactoring and separation of existing code into smaller chunks for the sake of testability.

Signed-off-by: Christian Wolf <github@christianwolf.email>
Signed-off-by: Christian Wolf <github@christianwolf.email>
Signed-off-by: Christian Wolf <github@christianwolf.email>
Signed-off-by: Christian Wolf <github@christianwolf.email>
@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #1097 (77fad19) into master (74b0157) will increase coverage by 12.47%.
The diff coverage is 98.98%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1097       +/-   ##
===========================================
+ Coverage   45.38%   57.86%   +12.47%     
===========================================
  Files          53       73       +20     
  Lines        2069     2290      +221     
===========================================
+ Hits          939     1325      +386     
+ Misses       1130      965      -165     
Flag Coverage Δ
integration 1.96% <0.00%> (-0.21%) ⬇️
migration 4.06% <0.00%> (-0.44%) ⬇️
unittests 51.83% <98.98%> (+13.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/Service/RecipeService.php 0.00% <0.00%> (ø)
lib/Exception/InvalidDurationException.php 100.00% <100.00%> (ø)
lib/Exception/InvalidRecipeException.php 100.00% <100.00%> (ø)
lib/Helper/Filter/AbstractJSONFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/CleanCategoryFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/ExtractImageUrlFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/FixDescriptionFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/FixDurationsFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/FixImageSchemeFilter.php 100.00% <100.00%> (ø)
lib/Helper/Filter/JSON/FixIngredientsFilter.php 100.00% <100.00%> (ø)
... and 12 more

@github-actions
Copy link

github-actions bot commented Jul 22, 2022

Unit Test Results

     36 files       36 suites   11m 14s ⏱️
   402 tests    402 ✔️ 0 💤 0
4 824 runs  4 824 ✔️ 0 💤 0

Results for commit 77fad19.

♻️ This comment has been updated with latest results.

Signed-off-by: Christian Wolf <github@christianwolf.email>
Signed-off-by: Christian Wolf <github@christianwolf.email>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usage of Polyorphism to realise filters/checks
1 participant