travis-ci
1 of 1 new or added line in 1 file covered. (100.0%)
805 of 891 relevant lines covered (90.35%)
449.37 hits per line
1 |
module ChildProcess |
20✔ |
2 |
class AbstractIO |
20✔ |
3 |
attr_reader :stderr, :stdout, :stdin |
20✔ |
4 |
|
|
5 |
def inherit! |
20✔ |
6 |
@stdout = STDOUT |
40✔ |
7 |
@stderr = STDERR |
40✔ |
8 |
end
|
|
9 |
|
|
10 |
def stderr=(io) |
20✔ |
11 |
check_type io |
120✔ |
12 |
@stderr = io
|
120✔ |
13 |
end
|
|
14 |
|
|
15 |
def stdout=(io) |
20✔ |
16 |
check_type io |
220✔ |
17 |
@stdout = io
|
200✔ |
18 |
end
|
|
19 |
|
|
20 |
#
|
|
21 |
# @api private
|
|
22 |
#
|
|
23 |
|
|
24 |
def _stdin=(io) |
20✔ |
25 |
check_type io |
60✔ |
26 |
@stdin = io
|
60✔ |
27 |
end
|
|
28 |
|
|
29 |
private |
20✔ |
30 |
|
|
31 |
def check_type(io) |
20✔ |
32 |
raise SubclassResponsibility, "check_type" |
× |
33 |
end
|
|
34 |
|
|
35 |
end
|
|
36 |
end
|