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