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] header #27

Merged
merged 12 commits into from
Dec 6, 2021
Merged

[MISC] header #27

merged 12 commits into from
Dec 6, 2021

Conversation

eseiler
Copy link
Member

@eseiler eseiler commented Dec 3, 2021

Commit 1 resolves #4
Resolves #25

  • Remove unnecessary includes in test/unit and test/snippet
  • Above includes trivial replacements: seqan3::debug_stream -> std::cerr
  • Sort includes: seqan3 gets its own block -> should vanish once we are independent :)
  • Minimize std includes
  • Minimize seqan3 includes
  • Minimize sharg includes
  • Adds header test
  • Adds CI for header test

@vercel
Copy link

vercel bot commented Dec 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/seqan/sharg-parser/GoxTwW5xbSNKBuxLPJkP4hueoNqc
✅ Preview: https://sharg-parser-git-fork-eseiler-misc-header-seqan.vercel.app

@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #27 (e5df0eb) into master (89fe4a1) will increase coverage by 1.24%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   94.35%   95.59%   +1.24%     
==========================================
  Files          11       11              
  Lines        1080      886     -194     
==========================================
- Hits         1019      847     -172     
+ Misses         61       39      -22     
Impacted Files Coverage Δ
include/sharg/argument_parser.hpp 97.41% <ø> (ø)
include/sharg/auxiliary.hpp 85.71% <ø> (ø)
include/sharg/detail/format_base.hpp 90.51% <ø> (-1.05%) ⬇️
include/sharg/detail/format_help.hpp 94.56% <ø> (+6.08%) ⬆️
include/sharg/detail/format_html.hpp 90.38% <ø> (+1.77%) ⬆️
include/sharg/detail/format_man.hpp 96.42% <ø> (-0.72%) ⬇️
include/sharg/detail/format_parse.hpp 96.68% <ø> (+0.39%) ⬆️
include/sharg/detail/terminal.hpp 100.00% <ø> (ø)
include/sharg/detail/version_check.hpp 92.39% <ø> (+0.28%) ⬆️
include/sharg/validators.hpp 100.00% <ø> (ø)
... and 6 more

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 89fe4a1...e5df0eb. Read the comment docs.

@eseiler eseiler changed the title [MISC] header cleanup [MISC] header Dec 3, 2021
Comment on lines +19 to +25

namespace seqan3::detail
{

struct test_accessor;

} // seqan3::detail
Copy link
Member Author

Choose a reason for hiding this comment

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

I adapted #14 to remove this declaration and replace it with the sharg include

@eseiler eseiler requested a review from smehringer December 3, 2021 13:56
Copy link
Member

@smehringer smehringer left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for all the work. Just one small thing

Comment on lines 17 to 26
#include <seqan3/core/detail/test_accessor.hpp>

#include <sharg/detail/format_base.hpp>
#include <sharg/detail/terminal.hpp>

namespace seqan3::detail
{

struct test_accessor;

} // seqan3::detail

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 a weird change. It is just as easy to copy over the respective file and put it into the sharg namespace, then replace the include. There is an issue for this #14 :)
Can you revert this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, it removes the stuff that seqan3 includes in the test_accessor header, and I already adapted #14 to replace this forward declaration.

Btw, do we really need a header? because we do this declaration exactly once.

@eseiler eseiler requested a review from smehringer December 6, 2021 09:04
@smehringer smehringer merged commit f7b8551 into seqan:master Dec 6, 2021
@eseiler eseiler deleted the misc/header branch October 24, 2022 07:52
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.

[INFRA] Add header test [MISC] Adapt include paths to new library.
2 participants