-
Notifications
You must be signed in to change notification settings - Fork 52
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
Correct datatypes for string expressions #1636
base: master
Are you sure you want to change the base?
Correct datatypes for string expressions #1636
Conversation
Co-authored-by: Johannes Kalmbach <[email protected]>
Co-authored-by: Johannes Kalmbach <[email protected]>
Update from original Qlever
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1636 +/- ##
==========================================
+ Coverage 89.25% 89.57% +0.32%
==========================================
Files 372 383 +11
Lines 34818 37023 +2205
Branches 3931 4186 +255
==========================================
+ Hits 31076 33165 +2089
- Misses 2470 2547 +77
- Partials 1272 1311 +39 ☔ View full report in Codecov by Sentry. |
Hi, You can above click at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A first round on everything but the tests.
Work on my comments, and contact me once you are done or are left with questions.
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another round of reviews, this is really improving.
Make sure that the continuous integration runs through (in particular no warnings in the code + formatting etc.)
EXPECT_EQ(resultLiteral.value().toStringRepresentation(), "\"something\""); | ||
// Case onlyReturnLiterals | ||
resultLiteral = ExportQueryExecutionTrees::idToLiteralOrIri<true>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a lot of code duplication here.
As a first step you can factor out the calls to idToLiteralOrIri
(write a lambda that does this for you, such that the calls get shorter.
Then you can look up the gtest matchers ::testing::Optional
and ::testing::ResultOf
to get this shorter (the googletest documentation, or the rest of the codebase can give you hints, otherwise contact me.
Conformance check passed ✅Test Status Changes 📊
|
Ich weiß leider immer noch nicht, wie ich ich zum Testen ein Literal mit Datatype erzeugen kann.
Also in Zeile ExportExecutionTreesTest.cpp Zeile 1678 + Zeile 1686.
Gibt es hier in Github die Möglichkeit, dass ich zu einzelnen Codestellen Kommentare (Fragen an dich) einfüge, damit es übersichtlicher ist. Ich habe die Funktion nur in den einzelnen Commits gefunden, aber bis man die dann findet. Also wie mache ich es am besten?