travis-ci
235 of 235 new or added lines in 21 files covered. (100.0%)
1207 of 1282 relevant lines covered (94.15%)
24.47 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/ |
27 all except jruby-9.1.13.0 ✔ |
|
Crack::XML.parse(response.body) |
× |
11 |
else
|
|
|
JSON.parse(response.body)
|
27 all except jruby-9.1.13.0 ✔ |
13 |
end
|
|
14 |
end
|
|
15 |
end
|
|
16 |
end
|
|
17 |
end
|