Skip to content
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

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

eseiler
Copy link
Member

@eseiler eseiler commented Nov 8, 2023

Resolves #164

include/hibf/cereal/path.hpp was missing the cereal/types/string.hpp include to compile

Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hibf ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 4:33pm

@seqan-actions seqan-actions added lint [INTERNAL] used for linting and removed lint [INTERNAL] used for linting labels Nov 8, 2023
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c486df3) 99.94% compared to head (af5cf81) 99.94%.

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           
Files Coverage Δ
include/hibf/cereal/path.hpp 100.00% <ø> (ø)
include/hibf/config.hpp 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eseiler eseiler requested a review from smehringer November 8, 2023 17:01
@@ -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.
Copy link
Member

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?

Copy link
Member Author

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

Comment on lines +12 to +13
std::filesystem::path path{"/some/random/path.txt"};
seqan::hibf::test::test_serialisation(std::move(path));
Copy link
Member

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?

Copy link
Member Author

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

@smehringer smehringer merged commit ab2dc4b into seqan:main Nov 9, 2023
27 checks passed
@eseiler eseiler deleted the misc/cereal branch November 9, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add serialization tests
3 participants