-
Notifications
You must be signed in to change notification settings - Fork 161
[DYOD] Group 1: increase test coverage #2707
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
base: master
Are you sure you want to change the base?
Conversation
increase coverage of `storage/fixed_string_dictionary_segment/fixed_string_vector.cpp`
increase coverage for VariableLengthKeyStore
Based on Coverage Report Created: 2025-05-22 14:51, we are testing the following previously uncovered member functions and operators: 1. VariableLengthKey::operator=(const VariableLengthKeyBase&) 2. VariableLengthKey::operator=(const VariableLengthKey&) 3. VariableLengthKey::operator!=(const VariableLengthKey&) 4. VariableLengthKey::operator!=(const VariableLengthKeyConstProxy&) 5. VariableLengthKey::bytes_per_key() const 6. operator<<(std::ostream&, const VariableLengthKey&)
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.
Nice tests overall! I just have a couple of comments.
src/test/lib/storage/fixed_string_dictionary_segment/fixed_string_vector_test.cpp
Outdated
Show resolved
Hide resolved
src/test/lib/storage/fixed_string_dictionary_segment/fixed_string_vector_test.cpp
Outdated
Show resolved
Hide resolved
src/test/lib/storage/fixed_string_dictionary_segment/fixed_string_vector_test.cpp
Outdated
Show resolved
Hide resolved
src/test/lib/storage/fixed_string_dictionary_segment/fixed_string_vector_test.cpp
Outdated
Show resolved
Hide resolved
src/test/lib/storage/fixed_string_dictionary_segment/fixed_string_vector_test.cpp
Outdated
Show resolved
Hide resolved
src/test/lib/storage/index/group_key/variable_length_key_test.cpp
Outdated
Show resolved
Hide resolved
std::ostringstream oss; | ||
oss << key; | ||
const auto str = oss.str(); | ||
EXPECT_FALSE(str.empty()); |
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.
I guess it would make sense to actually test the output and not only ensure it's non-empty.
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.
Check! I did it in the most basic way, maybe that's not enough, let me know
We improved the coverage of:
variable_length_key
variable_length_key_store
fixed_string_vector
Coverage before changes:



Coverage after:


