push
travis-ci
16 of 16 new or added lines in 1 file covered. (100.0%)
51 of 55 relevant lines covered (92.73%)
29.13 hits per line
1 |
|
|
2 |
|
|
3 |
|
|
4 |
module StructTrans |
2 all except jruby-9 ✔ |
5 |
module_function |
2 all except jruby-9 ✔ |
6 |
|
|
7 |
def trans_hash struct, *schemas |
2 all except jruby-9 ✔ |
8 |
transform(:hash, struct, schemas)
|
30 all except jruby-9 ✔ |
9 |
end
|
|
10 |
|
|
11 |
def construct_hash |
2 all except jruby-9 ✔ |
12 |
{} |
64 all except jruby-9 ✔ |
13 |
end
|
|
14 |
|
|
15 |
def write_hash hash, key, value |
2 all except jruby-9 ✔ |
16 |
raise KeyTaken.new("Key already taken: #{key.inspect}") if |
× |
17 |
hash.key?(key) |
76 all except jruby-9 ✔ |
18 |
|
|
19 |
hash[key] = value |
74 all except jruby-9 ✔ |
20 |
end
|
|
21 |
end
|