ropensci / jsonvalidate
Showing 1 of 3 files from the diff.
Newly tracked file
R/serialise.R changed.
Other files ignored by Codecov

@@ -51,7 +51,10 @@
Loading
51 51
##'   passed through to [jsonvalidate::json_validator] or a validator
52 52
##'   object itself.
53 53
##'
54 -
##' @return A string, representing `x` in JSON format
54 +
##' @return A string, representing `x` in JSON format. As for
55 +
##'   `jsonlite::toJSON` we set the class attribute to be `json` to
56 +
##'   mark it as serialised json.
57 +
##'
55 58
##' @export
56 59
##' @examples
57 60
##' @example man-roxygen/example-json_serialise.R
@@ -70,5 +73,7 @@
Loading
70 73
  }
71 74
72 75
  str <- jsonlite::toJSON(x, auto_unbox = FALSE)
73 -
  v8$call("safeSerialise", str)
76 +
  ret <- v8$call("safeSerialise", str)
77 +
  class(ret) <- "json"
78 +
  ret
74 79
}
Files Coverage
R 100.00%
Project Totals (5 files) 100.00%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading