github
198 of 204 new or added lines in 45 files covered. (97.06%)
4 existing lines in 4 files now uncovered.15383 of 15539 relevant lines covered (99.0%)
1398.3 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
|