travis-ci
758 of 901 relevant lines covered (84.13%)
48.99 hits per line
1 |
module ChildProcess |
2✔ |
2 |
class AbstractIO |
2✔ |
3 |
attr_reader :stderr, :stdout, :stdin |
2✔ |
4 |
|
|
5 |
def inherit! |
2✔ |
6 |
@stdout = STDOUT |
4✔ |
7 |
@stderr = STDERR |
4✔ |
8 |
end
|
|
9 |
|
|
10 |
def stderr=(io) |
2✔ |
11 |
check_type io |
12✔ |
12 |
@stderr = io
|
12✔ |
13 |
end
|
|
14 |
|
|
15 |
def stdout=(io) |
2✔ |
16 |
check_type io |
22✔ |
17 |
@stdout = io
|
20✔ |
18 |
end
|
|
19 |
|
|
20 |
#
|
|
21 |
# @api private
|
|
22 |
#
|
|
23 |
|
|
24 |
def _stdin=(io) |
2✔ |
25 |
check_type io |
6✔ |
26 |
@stdin = io
|
6✔ |
27 |
end
|
|
28 |
|
|
29 |
private |
2✔ |
30 |
|
|
31 |
def check_type(io) |
2✔ |
32 |
raise SubclassResponsibility, "check_type" |
× |
33 |
end
|
|
34 |
|
|
35 |
end
|
|
36 |
end
|