push
travis-ci
71 of 71 new or added lines in 8 files covered. (100.0%)
1586 of 1789 relevant lines covered (88.65%)
8051.88 hits per line
|
module ShEx::Algebra |
3 all except jruby-9, CI=true ✔ |
2 |
##
|
|
|
class Language < Operator::Unary |
3 all except jruby-9, CI=true ✔ |
|
NAME = :language |
3 all except jruby-9, CI=true ✔ |
5 |
|
|
6 |
##
|
|
7 |
# matches any literal having a language tag that matches value
|
|
|
def match?(value, depth: 0) |
3 all except jruby-9, CI=true ✔ |
|
status "", depth: depth |
× |
|
if case expr = operands.first |
× |
|
when RDF::Literal then value.language == expr.to_s.to_sym |
× |
|
else false |
× |
|
end
|
× |
|
status "matched #{value}", depth: depth |
× |
|
true
|
× |
|
else
|
× |
|
status "not matched #{value}", depth: depth |
× |
|
false
|
× |
|
end
|
× |
20 |
end
|
|
21 |
end
|
|
22 |
end
|