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

Unit test for checking ICU data #795

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Unit test for checking ICU data #795

merged 1 commit into from
Jul 19, 2022

Conversation

veloman-yunkan
Copy link
Collaborator

This PR adds a unit test requested in #792 (comment).

A known issue with this PR is that kiwix::ICULanguageInfo introduced in it started as a free function but was later converted to a class, whereupon stringTools.h stopped being a good home for it.

@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Merging #795 (28f8dbc) into master (81865c0) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #795      +/-   ##
==========================================
+ Coverage   70.61%   70.65%   +0.04%     
==========================================
  Files          53       53              
  Lines        3702     3708       +6     
  Branches     2055     2055              
==========================================
+ Hits         2614     2620       +6     
  Misses       1086     1086              
  Partials        2        2              
Impacted Files Coverage Δ
src/opds_dumper.cpp 98.27% <100.00%> (-0.09%) ⬇️
src/tools/stringTools.cpp 52.77% <100.00%> (+2.53%) ⬆️
src/tools/stringTools.h 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81865c0...28f8dbc. Read the comment docs.

@kelson42
Copy link
Collaborator

@mgautierfr Can you please review this PR?

Copy link
Member

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

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

A known issue with this PR is that kiwix::ICULanguageInfo introduced in it started as a free function but was later converted to a class, whereupon stringTools.h stopped being a good home for it.

stringTools.h is used internally only. It seems overkill to create another specific header for ICULanguageInfo. If in the future we think it would be time to move this, we will. But for now it is ok.

@mgautierfr mgautierfr merged commit dfc6cad into master Jul 19, 2022
@mgautierfr mgautierfr deleted the icu_data_check branch July 19, 2022 09:23
mgautierfr added a commit that referenced this pull request Nov 30, 2022
* [API Break] Remove wrapper around libzim (@mgautierfr #789)
* Allow kiwix-serve to use custom resource files (@veloman-yunkan #779)
* Properly handle searchProtocolPrefix when rendering search result (@veloman-yunkan #823)
* Prevent search on multi language content (@veloman-yunkan #838)
* Use new `zim::Archive::getMediaCount` from libzim (@mgautierfr #836)
* Catalog:
 - Include tags in free text catalog search (@veloman-yunkan #802)
 - Illustration's url is based on book's uuid (@veloman-yunkan #804)
 - Cleanup of the opds-dumper (@veloman-yunkan #829)
 - Allow filtering of catalog content using multiple languages (@veloman-yunkan #841)
 - Make opds-dumper respect the namemapper (@mgautierfr #837)
* Server:
 - Correctly handle `\` in suggestion json generation (@veloman-yunkan #843)
 - Better http caching (@veloman-yunkan #833)
 - Make `/suggest` endpoint thread-safe (@veloman-yunkan #834)
 - Better redirection of main page (@veloman-yunkan #827)
 - Remove jquery (@mgautierfr @juuz0 #796)
 - Better Viewer of zim content :
   . Introduce `/content` endpoints (@veloman-yunkan #806)
   . Switch to iframe based content viewer (@veloman-yunkan #716)
 - Optimised design of the welcome page:
   . Alignement (@juuz0 @kelson42 #786)
   . Exit download modal on pressing escape key (@Juzz0 #800)
   . Add favicon for different devices (@Juzz0 #805)
   . Fix auto hidding of the toolbar (@veloman-yunkan #821)
   . Allow user to filter books by tags in the front page (@juuz0 #711)
* CI :
  - Trigger CI on pull_request (@kelson42 #791)
  - Drop Ubuntu Impish packaging (@legoktm #825)
  - Add Ubuntu Kinetic packaging (@legoktm #801)
* Testing:
  - Test ICULanguageInfo (@veloman-yunkan #795)
  - Introduce fake `test` language to test i18n (@veloman-yunkan #848)
* Fix documentation (@kelson42 #816)
* Udpate translation (#787 #839 #847)
@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.

3 participants