Skip to content

Method to set the input stream of a command#63

Closed
schischi wants to merge 1 commit intogoogle:masterfrom
schischi:proc-stdin
Closed

Method to set the input stream of a command#63
schischi wants to merge 1 commit intogoogle:masterfrom
schischi:proc-stdin

Conversation

@schischi
Copy link
Copy Markdown
Contributor

A lot of external programs are using stdin to pass data to the program
Expose a function setInput() to specify a custom string that is gonna be written to the process's standard input.
Test plan: added a new test and used the feature in one of my custom plugin.

A lot of external programs are using stdin to pass data to the program
Expose a function `setInput()` to specify a custom string that is gonna be written to the process's standard input.
Test plan: added a new test and used the feature in one of my custom plugin.
@google-cla google-cla Bot added the cla: yes label Aug 11, 2020
}

@Test
public void execute_writesInputIfSet()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please use the format functionUnderTest_condition_expectedResult
e.g. something like execute_whenInputIsSet_writesInputToCommand

@tooryx tooryx closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants