github
200 of 209 new or added lines in 46 files covered. (95.69%)
7 existing lines in 5 files now uncovered.15419 of 15578 relevant lines covered (98.98%)
1396.51 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
module Grape |
18✔ |
4 |
module Formatter |
18✔ |
5 |
module Json |
18✔ |
6 |
class << self |
18✔ |
7 |
def call(object, _env) |
18✔ |
8 |
return object.to_json if object.respond_to?(:to_json) |
5,741✔ |
9 |
|
|
NEW
|
::Grape::Util::Json.dump(object) |
× |
11 |
end
|
|
12 |
end
|
|
13 |
end
|
|
14 |
end
|
|
15 |
end
|