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 - Test for inconsistent xref for catalog. #319

Merged
merged 3 commits into from
Mar 28, 2018

Conversation

carlwilson
Copy link
Member

- added test for inconsistent object number from xref table;
- added constant for inconsistent catalog number; and
- unit tests and resources for Doc Catalog.
Closes #208
@codecov
Copy link

codecov bot commented Mar 16, 2018

Codecov Report

Merging #319 into integration will increase coverage by 0.01%.
The diff coverage is 60%.

Impacted file tree graph

@@                Coverage Diff                @@
##             integration     #319      +/-   ##
=================================================
+ Coverage          43.53%   43.54%   +0.01%     
- Complexity          3322     3323       +1     
=================================================
  Files                367      367              
  Lines              30160    30166       +6     
  Branches            5965     5967       +2     
=================================================
+ Hits               13129    13136       +7     
+ Misses             14631    14629       -2     
- Partials            2400     2401       +1
Impacted Files Coverage Δ Complexity Δ
...ard/hul/ois/jhove/module/pdf/MessageConstants.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...va/edu/harvard/hul/ois/jhove/module/PdfModule.java 70.66% <60%> (+0.03%) 281 <0> (ø) ⬇️
...a/edu/harvard/hul/ois/jhove/module/pdf/Parser.java 78.78% <0%> (+1.21%) 47% <0%> (+1%) ⬆️

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 053f98f...751ca3e. Read the comment docs.

@carlwilson carlwilson self-assigned this Mar 16, 2018
@carlwilson carlwilson added this to the Release v1.20 milestone Mar 16, 2018
@@ -199,6 +196,7 @@
private static final String DICT_KEY_LANG = "Lang";
private static final String DICT_KEY_PAGES = "Pages";
private static final String DICT_KEY_PAGE_LABELS = "PageLabels";
private static final String DICT_KEY_TYPE = "Type";
Copy link
Member

Choose a reason for hiding this comment

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

Mixed indentation white-space.

@@ -0,0 +1,118 @@
/**
*
*/
Copy link
Member

Choose a reason for hiding this comment

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

Empty Javadoc.

@@ -0,0 +1,95 @@
/**
*
*/
Copy link
Member

Choose a reason for hiding this comment

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

Empty Javadoc.


/**
*
*/
Copy link
Member

Choose a reason for hiding this comment

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

Empty Javadoc.

// If the type key value is not Catalog
info.setWellFormed(false);
info.setMessage(new ErrorMessage(MessageConstants.ERR_DOC_CAT_TYPE_NO_CAT, 0));
info.setMessage(new ErrorMessage(MessageConstants.ERR_DOC_CAT_TYPE_NO_CAT, 0));
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate messages?

carlwilson and others added 2 commits March 28, 2018 23:10
- removed empty JavaDoc;
- fixed inconsistent indentation; and
- removed duplicate error message.
@carlwilson carlwilson merged commit 94509dc into integration Mar 28, 2018
@carlwilson carlwilson deleted the fix/pdf-xref-consist branch March 28, 2018 23:20
rgfeldman added a commit to rgfeldman/jhove that referenced this pull request Apr 10, 2019
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.

2 participants