--- 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 ) ``` - Coverage - 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 (%) | |:----------------------------------------------------|:------------:| | carbonate | 51.46 | | [R/carbonate.R](https://github.com/yonicd/carbonate/blob/cran_update/R/carbonate.R) | 0.00 | | [R/selenium_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/selenium_functions.R) | 20.00 | | [R/uri_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/uri_functions.R) | 38.60 | | [R/carbon.R](https://github.com/yonicd/carbonate/blob/cran_update/R/carbon.R) | 60.61 | | [R/helpers.R](https://github.com/yonicd/carbonate/blob/cran_update/R/helpers.R) | 76.64 | | [R/set_get_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/set_get_functions.R) | 100.00 |
## Unit Tests Unit Test summary is created using the [testthat](https://github.com/r-lib/testthat) package. | file | n | time | error | failed | skipped | warning | icon | |:------------------------------------|----:|------:|------:|-------:|--------:|--------:|:-----| | [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R) | 3 | 0.116 | 0 | 0 | 0 | 0 | | | [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R) | 3 | 0.812 | 0 | 0 | 0 | 0 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R) | 8 | 1.257 | 0 | 0 | 2 | 0 | 🔶 | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R) | 6 | 2.591 | 0 | 0 | 0 | 0 | |
Show Detailed Test Results | file | context | test | status | n | time | icon | |:----------------------------------------|:--------|:-----------------------------------------|:--------|----:|------:|:-----| | [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L9) | port | port: init | PASS | 1 | 0.105 | | | [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L14) | port | port: reset | PASS | 1 | 0.008 | | | [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L19) | port | port: manual | PASS | 1 | 0.003 | | | [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L8) | set\_ | set functions: set_template | PASS | 1 | 0.464 | | | [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L13) | set\_ | set functions: set_font_family | PASS | 1 | 0.346 | | | [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L18) | set\_ | set functions: set_windows_control_theme | PASS | 1 | 0.002 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L9) | uri | options: benchmark | PASS | 1 | 0.248 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L17) | uri | uri: benchmark | PASS | 1 | 0.234 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L21) | uri | uri: 200 | PASS | 1 | 0.416 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L27) | uri | encode: encode character | PASS | 1 | 0.002 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L31) | uri | encode: no encode character | PASS | 1 | 0.002 | | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L37) | uri | tiny: valid tiny | SKIPPED | 1 | 0.002 | 🔶 | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L43) | uri | tiny: clipboard | SKIPPED | 1 | 0.014 | 🔶 | | [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#) | uri | bad template: error uri | PASS | 1 | 0.339 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L24) | yml | yaml fields: rgba | PASS | 1 | 0.515 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L29) | yml | yaml fields: template | PASS | 1 | 0.457 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L34) | yml | yaml fields: bad font family | PASS | 1 | 0.428 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L39) | yml | yaml fields: pv | PASS | 1 | 0.592 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L44) | yml | yaml fields: ph | PASS | 1 | 0.597 | | | [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L59) | yml | namesless palette: fill in palette | PASS | 1 | 0.002 | | | Failed | Warning | Skipped | |:-------|:--------|:--------| | 🛑 | ⚠️ | 🔶 |
Session Info | Field | Value | |:---------|:---------------------------------| | Version | R version 4.2.1 (2022-06-23) | | Platform | x86_64-apple-darwin17.0 (64-bit) | | Running | macOS Big Sur 11.6 | | Language | en_US | | Timezone | America/New_York | | Package | Version | |:---------|:--------| | testthat | 3.1.4 | | covr | 3.5.1 | | covrpage | 0.1 |