---
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 (%) |
|:------------------------------------|:------------:|
| slickR                              |    87.43     |
| [R/deprecated.R](https://github.com/yonicd/slickR/blob/master/R/deprecated.R) |     0.00     |
| [R/slick\_div.R](https://github.com/yonicd/slickR/blob/master/R/slick_div.R)  |    72.22     |
| [R/slickR.R](https://github.com/yonicd/slickR/blob/master/R/slickR.R)         |    76.00     |
| [R/dom\_utils.R](https://github.com/yonicd/slickR/blob/master/R/dom_utils.R)  |    96.97     |
| [R/methods.R](https://github.com/yonicd/slickR/blob/master/R/methods.R)       |    97.06     |
| [R/readImage.R](https://github.com/yonicd/slickR/blob/master/R/readImage.R)   |    100.00    |
| [R/settings.R](https://github.com/yonicd/slickR/blob/master/R/settings.R)     |    100.00    |

<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-div\_method.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div_method.R) |   4 | 0.020 |     0 |      0 |       0 |       0 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R)                |   9 | 0.052 |     0 |      0 |       0 |       0 |
| [test-readimage.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-readimage.R)    |   3 | 0.024 |     0 |      0 |       0 |       0 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R)          |  11 | 0.073 |     0 |      0 |       0 |       0 |

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

| file                                                     | context     | test                                       | status |   n |  time |
|:---------------------------------------------------------|:------------|:-------------------------------------------|:-------|----:|------:|
| [test-div\_method.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div_method.R#L8_L11)  | div methods | slick div method: shiny.tag                | PASS   |   1 | 0.003 |
| [test-div\_method.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div_method.R#L15_L18) | div methods | slick div method: list                     | PASS   |   1 | 0.003 |
| [test-div\_method.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div_method.R#L22_L29) | div methods | slick div method: list with link           | PASS   |   1 | 0.009 |
| [test-div\_method.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div_method.R#L33_L39) | div methods | slick div method: xml                      | PASS   |   1 | 0.005 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L8_L11)                 | divs        | slick div types: img default               | PASS   |   1 | 0.002 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L15_L18)                | divs        | slick div types: img vector                | PASS   |   1 | 0.002 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L22_L25)                | divs        | slick div types: img file                  | PASS   |   1 | 0.031 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L29_L36)                | divs        | slick div types: img link                  | PASS   |   1 | 0.002 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L40_L43)                | divs        | slick div types: p                         | PASS   |   1 | 0.002 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L47_L50)                | divs        | slick div types: iframe                    | PASS   |   1 | 0.001 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L58_L71)                | divs        | slick list: dots                           | PASS   |   1 | 0.004 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L75_L88)                | divs        | slick list: list                           | PASS   |   1 | 0.003 |
| [test-div.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-div.R#L94_L98)                | divs        | slick outer div: wrap div                  | PASS   |   1 | 0.005 |
| [test-readimage.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-readimage.R#L6_L9)      | read images | slick div method: png                      | PASS   |   1 | 0.012 |
| [test-readimage.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-readimage.R#L13_L16)    | read images | slick div method: svg                      | PASS   |   1 | 0.003 |
| [test-readimage.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-readimage.R#L21_L23)    | read images | slick div method: svg not standalone       | PASS   |   1 | 0.009 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L20_L24)          | widget      | slickR widget: default                     | PASS   |   1 | 0.003 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L28_L32)          | widget      | slickR widget: shiny.tag                   | PASS   |   1 | 0.003 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L36_L40)          | widget      | slickR widget: css height                  | PASS   |   1 | 0.005 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L48_L50)          | widget      | combining slickR: stack                    | PASS   |   1 | 0.002 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L54_L56)          | widget      | combining slickR: synch                    | PASS   |   1 | 0.002 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L60_L64)          | widget      | combining slickR: same name                | PASS   |   1 | 0.003 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L68_L72)          | widget      | combining slickR: stack with setting       | PASS   |   1 | 0.004 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L80)              | widget      | slickR settings: add dots                  | PASS   |   1 | 0.003 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L84_L86)          | widget      | slickR settings: add setting to wrong side | PASS   |   1 | 0.012 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L90_L93)          | widget      | slickR settings: bad name                  | PASS   |   1 | 0.006 |
| [test-widget.R](https://github.com/yonicd/slickR/blob/master/tests/testthat/test-widget.R#L97_L100)         | widget      | slickR settings: bad class                 | PASS   |   1 | 0.030 |

</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 --->
