tests/README.md

Tests and Coverage

03 April, 2019 18:31:40

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

| Object | Coverage (%) | | :--------------------------------- | :----------: | | attempt | 84.56 | | R/on_error.R | 0.00 | | R/adverbs.R | 80.77 | | R/if.R | 100.00 | | R/is_class.R | 100.00 | | R/try_catch.R | 100.00 | | R/utils.R | 100.00 | | R/warn_if.R | 100.00 |

Unit Tests

Unit Test summary is created using the testthat package.

| file | n | time | error | failed | skipped | warning | | :---------------------------------------------------- | -: | ----: | ----: | -----: | ------: | ------: | | test-if.R | 78 | 0.069 | 0 | 0 | 0 | 0 | | test-is_try_error.R | 2 | 0.002 | 0 | 0 | 0 | 0 | | test-trycatch.R | 70 | 0.116 | 0 | 0 | 0 | 0 | | test-utils.R | 7 | 0.005 | 0 | 0 | 0 | 0 | | test-warn.R | 40 | 0.048 | 0 | 0 | 0 | 0 |

Show Detailed Test Results

| file | context | test | status | n | time | | :------------------------------------------------------- | :------------------ | :--------------------------------------- | :----- | -: | ----: | | test-if.R | if | any, all and none works | PASS | 18 | 0.028 | | test-if.R | if | if_then work | PASS | 26 | 0.017 | | test-if.R | if | if_else work | PASS | 7 | 0.004 | | test-if.R | if | scoped if works | PASS | 27 | 0.020 | | test-is_try_error.R | test-is_try_error | is_try_error works | PASS | 2 | 0.002 | | test-trycatch.R | trycatch | errors catching | PASS | 4 | 0.006 | | test-trycatch.R | trycatch | warning catching | PASS | 5 | 0.006 | | test-trycatch.R | trycatch | finally works | PASS | 2 | 0.014 | | test-trycatch.R | trycatch | trycatch works with an external variabel | PASS | 2 | 0.005 | | test-trycatch.R | try_catch_df | try_catch_df works | PASS | 14 | 0.026 | | test-trycatch.R | map_try_catch | map_try_catch works | PASS | 20 | 0.031 | | test-trycatch.R | attempt | attempt works | PASS | 8 | 0.007 | | test-trycatch.R | attempt | attempt and try work the same way | PASS | 3 | 0.006 | | test-trycatch.R | adverbs | silently works | PASS | 1 | 0.001 | | test-trycatch.R | adverbs | surely works | PASS | 2 | 0.003 | | test-trycatch.R | adverbs | silent_attempt works | PASS | 3 | 0.003 | | test-trycatch.R | adverbs | with_* works | PASS | 6 | 0.008 | | test-utils.R | test-utils.R | try_catch_builder works | PASS | 7 | 0.005 | | test-warn.R | test-warn.R | stop, warn and message works | PASS | 22 | 0.023 | | test-warn.R | test-any-all-none.R | any, all and none works | PASS | 18 | 0.025 |

Session Info

| Field | Value | | :------- | :---------------------------------- | | Version | R version 3.4.4 (2018-03-15) | | Platform | x86_64-apple-darwin15.6.0 (64-bit) | | Running | macOS 10.14.3 | | Language | en_US | | Timezone | Europe/Paris |

| Package | Version | | :------- | :--------- | | testthat | 2.0.0.9000 | | covr | 3.2.0 | | covrpage | 0.0.65 |



ColinFay/attempt documentation built on Jan. 12, 2023, 6:50 p.m.