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

[MISC] Remove some warnings and update parser. #164

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

Irallia
Copy link
Collaborator

@Irallia Irallia commented Sep 27, 2021

Resolves #161

When you build iGenVar with cmake ~/Repos/iGenVar/ -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic" you will run into some warnings, which will also get fixed with this PR.

I added some tests and cleaned up the CLI tests in the process. Now the file is very difficult to review. So maybe just ignore it, since my new tests all go through and are not a big innovation.

@Irallia Irallia self-assigned this Sep 27, 2021
@@ -282,7 +282,7 @@ TEST_F(iGenVar_cli_test, fail_negative_min_var_length)
"--min_var_length -30");
std::string expected_err
{
"[Error] You gave a negative min_var_length parameter.\n"
"[Error] Value parse failed for --min_var_length: Argument -30 could not be parsed as type std::string.\n"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is'nt this size_t? Is this a bug of the seqan3 parser?

Suggested change
"[Error] Value parse failed for --min_var_length: Argument -30 could not be parsed as type std::string.\n"
"[Error] Value parse failed for --min_var_length: Argument -30 could not be parsed as type size_t.\n"

Copy link
Collaborator Author

@Irallia Irallia Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved by seqan/seqan3#2836

After SeqAn3 Release 3.1. it will look like:

Suggested change
"[Error] Value parse failed for --min_var_length: Argument -30 could not be parsed as type std::string.\n"
"[Error] Value parse failed for --min_var_length: Argument -30 could not be parsed as type unsigned 64 bit integer.\n"

@Irallia Irallia force-pushed the MISC/remove_warnings branch from 36019a4 to febb5d4 Compare September 27, 2021 13:42
@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #164 (10fb29e) into master (a19055b) will increase coverage by 1.50%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   94.88%   96.39%   +1.50%     
==========================================
  Files          18       18              
  Lines         763      749      -14     
==========================================
- Hits          724      722       -2     
+ Misses         39       27      -12     
Impacted Files Coverage Δ
src/iGenVar.cpp 98.19% <100.00%> (+9.30%) ⬆️
...ules/clustering/hierarchical_clustering_method.cpp 99.06% <100.00%> (ø)
src/variant_detection/variant_detection.cpp 94.11% <100.00%> (+0.14%) ⬆️
src/variant_detection/variant_output.cpp 98.03% <100.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a19055b...10fb29e. Read the comment docs.

@@ -15,7 +15,7 @@ enum detection_methods

//!\cond
// ATTENTION: Must always be the last item; will be used to determine the number of ids.
SIZE //!< Determines the size of the enum.
// SIZE //!< Determines the size of the enum.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't need this at the moment I have just commented it out.

@Irallia Irallia requested a review from eseiler September 27, 2021 15:40
@eseiler eseiler merged commit a359706 into seqan:master Sep 27, 2021
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.

[MISC] Update iGenVar parser - pass non-negative values and leave the handling to the parser
2 participants