Conversation
| @@ -266,4 +266,42 @@ TEST_F(test_transaction, trivial_types_dup_iterate_by_key) | |||
| ASSERT_TRUE(result); | |||
There was a problem hiding this comment.
I think there is a small bug in trivial_types_dup_iterate_by_key, iterate_by_key call should be used instead. I will look into that as a different PR.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
+ Coverage 93.04% 93.44% +0.39%
==========================================
Files 13 15 +2
Lines 446 519 +73
==========================================
+ Hits 415 485 +70
- Misses 31 34 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| using ro_view | ||
| = db_view<ro_iterator<key_trait, value_trait, LmdbApi>, LmdbApi>; | ||
| using ro_lo_view | ||
| = db_dup_view<ro_iterator<key_trait, value_trait, LmdbApi>, LmdbApi>; |
There was a problem hiding this comment.
I think it makes sense to rename db_dup_view into something like db_view_with_key as it is now used not only in key duplicate scenarios
|
|
||
| auto const& db_view = *result; | ||
| auto const it = db_view.begin(); | ||
| EXPECT_NE(it, db_view.end()); |
There was a problem hiding this comment.
Please use ASSERT_NE before iterator will be dereferenced.
| auto *cursor{reinterpret_cast<MDB_cursor *>(0x84)}; | ||
|
|
||
| { | ||
| InSequence const seq; |
There was a problem hiding this comment.
Would be great to have basic integration test as well.
No description provided.