github
195 of 201 new or added lines in 44 files covered. (97.01%)
4 existing lines in 4 files now uncovered.15388 of 15544 relevant lines covered (99.0%)
1397.87 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,669✔ |
9 |
|
|
NEW
|
::Grape::Util::Json.dump(object) |
× |
11 |
end
|
|
12 |
end
|
|
13 |
end
|
|
14 |
end
|
|
15 |
end
|