travis-ci
601 of 601 new or added lines in 32 files covered. (100.0%)
1210 of 1264 relevant lines covered (95.73%)
25.32 hits per line
|
require_relative 'base'
|
3 all except jruby-9.1.13.0 ✔ |
|
require 'json'
|
3 all except jruby-9.1.13.0 ✔ |
|
require 'crack'
|
3 all except jruby-9.1.13.0 ✔ |
4 |
|
|
|
module TLAW |
3 all except jruby-9.1.13.0 ✔ |
|
module Processors |
3 all except jruby-9.1.13.0 ✔ |
|
class ResponseProcessor < Base |
3 all except jruby-9.1.13.0 ✔ |
|
def parse_response(response) |
3 all except jruby-9.1.13.0 ✔ |
|
if response.headers['Content-Type'] =~ /xml/ |
36 all except jruby-9.1.13.0 ✔ |
|
Crack::XML.parse(response.body) |
× |
11 |
else
|
|
|
JSON.parse(response.body)
|
36 all except jruby-9.1.13.0 ✔ |
13 |
end
|
|
14 |
end
|
|
15 |
end
|
|
16 |
end
|
|
17 |
end
|