travis-ci
624 of 624 new or added lines in 33 files covered. (100.0%)
1231 of 1284 relevant lines covered (95.87%)
25.2 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
|