Repo Added
|
Files
65
|
Badge
README BADGES
|
github
Issue 150: Fix discovered problems and update unit tests. This is a follow up to the commit fe69b97d4. A bug with the processing of the percent encoded URLs is due to custom code being used to build the RDF Model. Remove that code and use the Apache Jena API directly. This fixes the problems but changes the network HTTP fetch approach that forces a change to the unit test logic. Several unit tests are now failing, possibly due to problems exposed by the new testing approach. I ran out of time and so I am simply disabling tests that I have not had enough time to determine what is wrong. The unit tests exposed a NULL pointer error handling in the `getMimeType()` function. The headers is being returned as `NULL` and it is not being safely handled. The cause of this is unknown and needs further investigation. Regardless of this problem, the `getMimeType()` should not be failing on a `NULL` pointer error and now no longer is. The `try..catch..` in that function is hiding the actual error and has been removed. The original `createRdfModel()` has been copied over into individual tests to avoid rewriting all of the existing unit tests. These needs to be changed and removed in the future.
2 of 15 new or added lines in 3 files covered. (13.33%)
402 existing lines in 19 files now uncovered.601 of 1230 relevant lines covered (48.86%)
0.49 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|