File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
defmodule ExUnit.CaptureIO do
2
2
@moduledoc % B """
3
3
This module provides functionality to capture IO to test it.
4
- The way to use this module is to import them into your module.
5
4
6
5
## Examples
7
6
@@ -21,16 +20,16 @@ defmodule ExUnit.CaptureIO do
21
20
22
21
@ doc """
23
22
Captures IO. Returns nil in case of no output,
24
- otherwise returns the binary which is captured outputs .
23
+ otherwise returns the binary which is the captured output .
25
24
26
25
By default, capture_io replaces the group_leader (`:stdio`)
27
26
for the current process. However, the capturing of any other
28
27
named device like `:stderr` is also possible globally by
29
28
giving the registered device name explicitly as argument.
30
29
31
- When capturing of `:stdio` and the `:capture_prompt` option
32
- is not `false`, this function captures a prompt, otherwise
33
- do not .
30
+ When capturing `:stdio` and the `:capture_prompt` option is `false`,
31
+ prompts (specified as arguments in IO.get* functions) are not
32
+ captured .
34
33
35
34
A developer can set a string as an input. The default
36
35
input is `:eof`.
You can’t perform that action at this time.
0 commit comments