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