---
title: "Tests and Coverage"
date: "`r format(Sys.time(), '%d %B, %Y %H:%M:%S')`"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Tests and Coverage}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---
  
```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = FALSE
)
```

<!--- Placeholder for tests/README.md Do Not Edit--->
-   [Coverage](#coverage)
-   [Unit Tests](#unit-tests)

This output is created by
[covrpage](https://github.com/yonicd/covrpage).

## Coverage

Coverage summary is created using the
[covr](https://github.com/r-lib/covr) package.

| Object                          | Coverage (%) |
|:--------------------------------|:------------:|
| jsTree                          |    80.49     |
| [R/jsTree.R](https://github.com/yonicd/jsTree/blob/master/R/jsTree.R)     |    78.57     |
| [R/makelist.R](https://github.com/yonicd/jsTree/blob/master/R/makelist.R) |    82.50     |

<br>

## Unit Tests

Unit Test summary is created using the
[testthat](https://github.com/r-lib/testthat) package.

| file                                |   n |  time | error | failed | skipped | warning |
|:------------------------------------|----:|------:|------:|-------:|--------:|--------:|
| [test-html.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-html.R) |   1 | 0.498 |     0 |      0 |       0 |       0 |
| [test-nest.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-nest.R) |   5 | 0.019 |     0 |      0 |       0 |       0 |

<details closed>
<summary>
Show Detailed Test Results
</summary>

| file                                    | context | test                  | status |   n |  time |
|:----------------------------------------|:--------|:----------------------|:-------|----:|------:|
| [test-html.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-html.R#L10) | html    | tree html             | PASS   |   1 | 0.498 |
| [test-nest.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-nest.R#L10) | nest    | nesting default       | PASS   |   1 | 0.004 |
| [test-nest.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-nest.R#L25) | nest    | nesting different sep | PASS   |   2 | 0.008 |
| [test-nest.R](https://github.com/yonicd/jsTree/blob/master/tests/testthat/test-nest.R#L37) | nest    | nesting nodestate     | PASS   |   2 | 0.007 |

</details>
<details>
<summary>
Session Info
</summary>

| Field    | Value                               |
|:---------|:------------------------------------|
| Version  | R version 3.6.3 (2020-02-29)        |
| Platform | x86\_64-apple-darwin15.6.0 (64-bit) |
| Running  | macOS Catalina 10.15.7              |
| Language | en\_US                              |
| Timezone | America/New\_York                   |

| Package  | Version |
|:---------|:--------|
| testthat | 3.0.0   |
| covr     | 3.5.0   |
| covrpage | 0.1     |

</details>
<!--- Final Status : pass --->
