tests/README.md

Tests and Coverage

22 October, 2018 11:22:01

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

| Object | Coverage (%) | | :----------------------------------------------- | :----------: | | HIBPwned | 100 | | R/account_breaches.R | 100 | | R/breached_site.R | 100 | | R/breached_sites.R | 100 | | R/data_classes.R | 100 | | R/HIBP_headers.R | 100 | | R/pastes.R | 100 | | R/utils.R | 100 |

Unit Tests

Unit Test summary is created using the testthat package.

| file | n | time | error | failed | skipped | warning | | :------------------------------------------------------------------ | -: | -----: | ----: | -----: | ------: | ------: | | test-account_breaches.R | 73 | 20.53 | 0 | 0 | 0 | 0 | | test-breached_site.R | 10 | 5.85 | 0 | 0 | 0 | 0 | | test-breached_sites.R | 13 | 8.11 | 0 | 0 | 0 | 0 | | test-data_classes.R | 3 | 3.55 | 0 | 0 | 0 | 0 | | test-HIBP_headers.R | 9 | 0.66 | 0 | 0 | 0 | 0 | | test-http-errors-handling.R | 5 | 253.47 | 0 | 0 | 0 | 0 | | test-lintr.R | 1 | 25.86 | 0 | 0 | 0 | 0 | | test-pastes.R | 19 | 6.07 | 0 | 0 | 0 | 0 |

Show Detailed Test Results

| file | context | test | status | n | time | | :---------------------------------------------------------------------- | :------------------ | :----------------------------------------------- | :----- | -: | -----: | | test-account_breaches.R | account_breaches | account_breaches works for a single account | PASS | 24 | 8.45 | | test-account_breaches.R | account_breaches | account_breaches works for multiple accounts | PASS | 37 | 11.86 | | test-account_breaches.R | account_breaches | handles incorrect values | PASS | 8 | 0.17 | | test-account_breaches.R | account_breaches | account_breaches can return a single data.frame | PASS | 4 | 0.05 | | test-breached_site.R | breached_site | breached_site works | PASS | 7 | 5.83 | | test-breached_site.R | breached_site | handles incorrect values | PASS | 3 | 0.02 | | test-breached_sites.R | breached_sites | breached_sites works | PASS | 10 | 8.08 | | test-breached_sites.R | breached_sites | handles incorrect values | PASS | 3 | 0.03 | | test-data_classes.R | data_classes | data_classes works | PASS | 3 | 3.55 | | test-HIBP_headers.R | HIBP_headers | headers are constructed correctly | PASS | 4 | 0.02 | | test-HIBP_headers.R | HIBP_headers | alternative agents work | PASS | 2 | 0.62 | | test-HIBP_headers.R | HIBP_headers | handles incorrect values | PASS | 3 | 0.02 | | test-http-errors-handling.R | http error handling | no 404 http errors are handled as expected | PASS | 3 | 251.82 | | test-http-errors-handling.R | http error handling | 404 http errors are handled as expected | PASS | 2 | 1.65 | | test-lintr.R | lints | Package Code Style | PASS | 1 | 25.86 | | test-pastes.R | pastes | pastes works for a single account | PASS | 7 | 2.18 | | test-pastes.R | pastes | pastes works for multiple accounts | PASS | 10 | 3.88 | | test-pastes.R | pastes | handles incorrect values | PASS | 2 | 0.01 |

Session Info

| Field | Value | | :------- | :------------------------------- | | Version | R version 3.5.0 (2018-04-23) | | Platform | x86_64-w64-mingw32/x64 (64-bit) | | Running | Windows >= 8 x64 (build 9200) | | Language | English_United States | | Timezone | Europe/Paris |

| Package | Version | | :------- | :------ | | testthat | 2.0.1 | | covr | 3.2.1 | | covrpage | 0.0.61 |



lockedata/HIBPwned documentation built on Oct. 15, 2022, 12:19 a.m.