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

Introduce Archive::getMediaCount #730

Merged
merged 4 commits into from
Nov 2, 2022
Merged

Introduce Archive::getMediaCount #730

merged 4 commits into from
Nov 2, 2022

Conversation

mgautierfr
Copy link
Collaborator

Fix #729

Code is based on getArchiveMediaCount in libkiwix.
readFullMimetypeAndCounterString and parseASingleMimetypeCounter are copied from libkiwix, without modification.

@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Base: 84.91% // Head: 84.98% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (ee4c488) compared to base (bc8a93f).
Patch coverage: 93.75% of modified lines in pull request are covered.

❗ Current head ee4c488 differs from pull request most recent head 7a40cce. Consider uploading reports for the commit 7a40cce to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #730      +/-   ##
==========================================
+ Coverage   84.91%   84.98%   +0.06%     
==========================================
  Files          98       99       +1     
  Lines        4383     4428      +45     
  Branches     1894     1921      +27     
==========================================
+ Hits         3722     3763      +41     
- Misses        660      664       +4     
  Partials        1        1              
Impacted Files Coverage Δ
include/zim/archive.h 100.00% <ø> (ø)
src/archive.cpp 79.91% <80.00%> (+0.18%) ⬆️
src/tools.cpp 87.03% <100.00%> (+4.32%) ⬆️
src/tools.h 100.00% <100.00%> (ø)
src/fileimpl.h 82.35% <0.00%> (-11.77%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/tools.h Outdated Show resolved Hide resolved
test/archive.cpp Outdated Show resolved Hide resolved
test/counterParsing.cpp Show resolved Hide resolved
src/archive.cpp Outdated Show resolved Hide resolved
@mgautierfr mgautierfr force-pushed the get_media_count branch 2 times, most recently from 3fd15f6 to cea515b Compare October 24, 2022 15:24
src/archive.cpp Outdated Show resolved Hide resolved
src/archive.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Please rebase-fixup.

@mgautierfr mgautierfr force-pushed the get_media_count branch 2 times, most recently from 8920632 to a119ec0 Compare November 2, 2022 09:44
@kelson42
Copy link
Contributor

kelson42 commented Nov 2, 2022

@mgautierfr Good to merge?

@mgautierfr
Copy link
Collaborator Author

yes

@mgautierfr mgautierfr merged commit a1dc312 into master Nov 2, 2022
@mgautierfr mgautierfr deleted the get_media_count branch November 2, 2022 13:22
mgautierfr added a commit that referenced this pull request Nov 30, 2022
* Optimization ofthe first call to `zim::Archive::iterEfficient` (@veloman-yunkan #724)
* Add some documentation to `zim::writer::IndexData` (@mgautierfr #727)
* Correctly catch and rethrow exception thrown in worker threads at creation (@mgautierfr #496 #748)
* Optimization of `Entry::getItem()` (@veloman-yunkan #732)
* Fix declaration of `zim::setICUDataDirectory()` (@MohitMaliFtechiz #733)
* Add `zim::Archive::getMediatCount()` (@mgautierfr #730)
* Make compilaton of examples optional (@mgautierfr #738)
* Add a CI for wasm (@mgautierfr #746)
* Make constructor of SuggestionItem public (@veloman-yunkan #740)
@mgautierfr mgautierfr mentioned this pull request Nov 30, 2022
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.

Move getArchiveMediaCount and getArchiveArticleCount in libzim
3 participants