Test that a driver passes all storr tests. This page is only of interest to people developing storr drivers; nothing here is required for using storr.
A function with no arguments that when run will
create a new driver instance. Depending on your storage model,
temporary directories, in-memory locations, or random-but-unique
prefixes may help create isolated locations for the test (the
tests assume that a storr created with
This will run through a suite of functions to test that a driver is likely to behave itself. As bugs are found they will be added to the test suite to guard against regressions.
The test suite is included in the package as
The procedure for each test block is:
Create a new driver by running
dr <- create().
Run a number of tests.
Destroy the driver by running
So before running this test suite, make sure this will not harm any precious data!
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.