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

Restore full coverage #29

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Restore full coverage #29

merged 1 commit into from
Jul 20, 2022

Conversation

bauglir
Copy link
Owner

@bauglir bauglir commented Jul 20, 2022

Using a list comprehension to cover SUPPORTED_TEXT_PLAIN_SHOW_MIME_TYPES ensures it gets covered by tests.

It is not entirely clear why this line does not get measured as covered by tests when the filter approach is used. The expectation is that this has to do with the fact that the filter approach results in an iterator being assigned to SUPPORTED_TEXT_PLAIN_SHOW_MIME_TYPES resulting in a Set, whereas the list comprehension assigns a Set
constructed from a Vector`. This is pure speculation, trying to materialize the iterator approach first does not result in the line
being covered either.

…W_MIME_TYPES`

It is not entirely clear why this line does not get measured as covered
by tests when the `filter` approach is used. The expectation is that
this has to do with the fact that the `filter` approach results in an
iterator being assigned to `SUPPORTED_TEXT_PLAIN_SHOW_MIME_TYPES`
resulting in a `Set`, whereas the list comprehension assigns a `Set`
constructed from a Vector`. This is pure speculation, trying to
materialize the iterator approach first does not result in the line
being covered either.
@bauglir bauglir self-assigned this Jul 20, 2022
@codecov
Copy link

codecov bot commented Jul 20, 2022

Codecov Report

Merging #29 (d26e85d) into development (5808e7c) will increase coverage by 0.90%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           development       #29      +/-   ##
================================================
+ Coverage        99.09%   100.00%   +0.90%     
================================================
  Files                4         4              
  Lines              111       110       -1     
================================================
  Hits               110       110              
+ Misses               1         0       -1     
Impacted Files Coverage Δ
src/Kroki.jl 100.00% <ø> (+3.57%) ⬆️

@bauglir bauglir merged commit a654355 into development Jul 20, 2022
@bauglir bauglir deleted the restore-full-coverage branch July 20, 2022 21:31
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.

1 participant