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

Local output streams in CommandLineParser #11520

Merged
merged 4 commits into from
Jul 7, 2021

Conversation

cameel
Copy link
Member

@cameel cameel commented Jun 10, 2021

Depends on #11518. In draft mode until that PR gets merged. Merged.

Now that we have tests for the part of CommandLineInterface that I extracted into CommandLineParser in #11518, we're getting messages printed during tests because they get written directly to cerr/cout. This PR changes CommandLineParser so that it receives streams as constructor parameters. In tests stringstreams are now used which also lets us compare the content of these streams in tests and see it test output if such a check fails.

@cameel cameel self-assigned this Jun 10, 2021
@cameel cameel force-pushed the command-line-parser branch from 06297f3 to fcab7e0 Compare June 10, 2021 18:23
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from 301e0ae to 4b87f33 Compare June 10, 2021 18:23
@cameel cameel marked this pull request as draft June 10, 2021 18:23
@cameel cameel force-pushed the command-line-parser branch from fcab7e0 to 3f499a6 Compare June 16, 2021 20:21
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from 4b87f33 to 2870b3c Compare June 16, 2021 20:21
@cameel cameel force-pushed the command-line-parser branch 4 times, most recently from 2cf6e62 to 924430b Compare June 17, 2021 15:40
@cameel cameel force-pushed the local-streams-in-command-line-parser branch 2 times, most recently from 19c84ee to 1b92997 Compare June 17, 2021 16:32
@cameel cameel mentioned this pull request Jun 21, 2021
6 tasks
@cameel cameel force-pushed the command-line-parser branch 2 times, most recently from dab3783 to 2aa689f Compare June 22, 2021 15:53
@cameel cameel force-pushed the command-line-parser branch from 2aa689f to e22b368 Compare June 28, 2021 12:03
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from 1b92997 to 7a1b6fc Compare June 28, 2021 12:03
@cameel cameel force-pushed the command-line-parser branch from e22b368 to 2827c71 Compare June 29, 2021 14:39
@cameel cameel mentioned this pull request Jun 29, 2021
@cameel cameel force-pushed the local-streams-in-command-line-parser branch 3 times, most recently from 3039bc3 to efee406 Compare July 1, 2021 18:23
@cameel cameel force-pushed the command-line-parser branch from 82198a0 to 7200fda Compare July 2, 2021 19:58
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from efee406 to 2f7a8fa Compare July 2, 2021 21:02
@cameel cameel force-pushed the command-line-parser branch 2 times, most recently from 50e1b7a to de7881c Compare July 5, 2021 19:06
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from 2f7a8fa to ceed75e Compare July 5, 2021 19:06
@cameel cameel force-pushed the command-line-parser branch 2 times, most recently from 61e994b to ef7abd2 Compare July 6, 2021 15:17
Base automatically changed from command-line-parser to develop July 7, 2021 10:51
@cameel cameel force-pushed the local-streams-in-command-line-parser branch from ceed75e to baced5d Compare July 7, 2021 10:53
@cameel cameel marked this pull request as ready for review July 7, 2021 11:04
@cameel
Copy link
Member Author

cameel commented Jul 7, 2021

#11518 has been merged so this PR is now reviewable.

@chriseth chriseth merged commit 46514ff into develop Jul 7, 2021
@chriseth chriseth deleted the local-streams-in-command-line-parser branch July 7, 2021 13:07
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.

2 participants