Skip to content

Commit

Permalink
[TEST] Increase code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MitraDarja committed Jan 5, 2022
1 parent da0c1f9 commit 1ff5c18
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,8 @@ int coverage(seqan3::argument_parser & parser)
return -1;
}

try
{
string_to_methods(method, args.name);
do_coverage(sequence_file, args);
}
catch (const std::invalid_argument & e)
{
std::cerr << e.what() << std::endl;
return -1;
}
string_to_methods(method, args.name);
do_coverage(sequence_file, args);

return 0;
}
Expand Down Expand Up @@ -110,16 +102,9 @@ int speed(seqan3::argument_parser & parser)
return -1;
}

try
{
string_to_methods(method, args.name);
do_comparison(sequence_files, args);
}
catch (const std::invalid_argument & e)
{
std::cerr << e.what() << std::endl;
return -1;
}
string_to_methods(method, args.name);
do_comparison(sequence_files, args);


return 0;
}
Expand Down

0 comments on commit 1ff5c18

Please sign in to comment.