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

Fix for EPUB 2 NCX navigation list parsing #56

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Conversation

vers-one
Copy link
Owner

@vers-one vers-one commented Sep 5, 2022

Fix for EPUB 2 NCX navigation list parsing

This is:

  • a bug fix
  • an enhancement

Related issue: #55

Description

This pull request fixes the EPUB 2 NCX navigation list parsing issues described in the issue linked above. It also adds unit tests for the EPUB 2 NCX reader.

Testing steps

  1. Open a EPUB 2 book which has at least one navigation list in the NCX file.
  2. Check the book.Schema.Schema.Epub2Ncx.NavLists[0].NavigationTargets property and make sure it contains at least one element.

@vers-one vers-one self-assigned this Sep 5, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #56 (aab03db) into master (9c4a8d5) will increase coverage by 16.91%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master      #56       +/-   ##
===========================================
+ Coverage   31.62%   48.53%   +16.91%     
===========================================
  Files          80       80               
  Lines        2084     2087        +3     
  Branches      221      221               
===========================================
+ Hits          659     1013      +354     
+ Misses       1419     1068      -351     
  Partials        6        6               
Impacted Files Coverage Δ
Source/VersOne.Epub/Readers/Epub2NcxReader.cs 100.00% <100.00%> (+100.00%) ⬆️
...VersOne.Epub/Schema/Ncx/Epub2NcxNavigationLabel.cs 25.00% <0.00%> (+25.00%) ⬆️
...ource/VersOne.Epub/Exceptions/Epub2NcxException.cs 33.33% <0.00%> (+33.33%) ⬆️
Source/VersOne.Epub/Schema/Ncx/Epub2NcxContent.cs 40.00% <0.00%> (+40.00%) ⬆️
...VersOne.Epub/Schema/Ncx/Epub2NcxNavigationPoint.cs 66.66% <0.00%> (+66.66%) ⬆️
Source/VersOne.Epub/Schema/Ncx/Epub2Ncx.cs 100.00% <0.00%> (+100.00%) ⬆️
Source/VersOne.Epub/Schema/Ncx/Epub2NcxHeadMeta.cs 100.00% <0.00%> (+100.00%) ⬆️
...urce/VersOne.Epub/Schema/Ncx/Epub2NcxPageTarget.cs 100.00% <0.00%> (+100.00%) ⬆️
.../VersOne.Epub/Schema/Ncx/Epub2NcxNavigationList.cs 100.00% <0.00%> (+100.00%) ⬆️
... and 1 more

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

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.

EPUB 2 NCX navigation list parsing issues
2 participants