-
Notifications
You must be signed in to change notification settings - Fork 2
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
[TEST] Add serialisation tests #165
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #165 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 44 45 +1
Lines 1776 1796 +20
=======================================
+ Hits 1775 1795 +20
Misses 1 1
☔ View full report in Codecov by Sentry. |
@@ -312,6 +312,23 @@ struct config | |||
*/ | |||
void validate_and_set_defaults(); | |||
|
|||
//!\brief Two configs are equal if all options, except seqan::hibf::config::input_fn, are equal. |
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.
this is just because input_fn cannot really be checked right?
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.
Yes, it cant be compared, expect to nullptr
. You could compare the addresses of the function that will be called, but I don't think that is what we want
std::filesystem::path path{"/some/random/path.txt"}; | ||
seqan::hibf::test::test_serialisation(std::move(path)); |
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.
why are you testing the std lib?
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.
Because we are providing the cereal overload
Resolves #164
include/hibf/cereal/path.hpp
was missing thecereal/types/string.hpp
include to compile