ad-freiburg / qlever

Very fast SPARQL Engine, which can handle very large knowledge graphs like the complete Wikidata, offers context-sensitive autocompletion for SPARQL queries, and allows combination with text search. It's faster than engines like Blazegraph or Virtuoso, especially for queries involving large result sets.
Apache License 2.0
417 stars 52 forks source link

More tests, i.p. for errors thrown in HTTP request handler #1498

Closed joka921 closed 1 month ago

joka921 commented 2 months ago

The code in the catch clauses of HttpServer::session in HttpServer.h was untested so far. It is now cleverly tested by creating a test HttpServer with a request handler that throws an expection after its reponse, redirecting the log, and then checking the log messages. Also test the hashing of DateYearOrDuration + make some other minor changes.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.19%. Comparing base (52416c1) to head (e8d27a5). Report is 8 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1498 +/- ## ========================================== + Coverage 94.14% 94.19% +0.05% ========================================== Files 347 347 Lines 25632 25629 -3 Branches 3446 3445 -1 ========================================== + Hits 24131 24142 +11 + Misses 1459 1445 -14 Partials 42 42 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud