Skip to main content

delete_database_for_testing

Function delete_database_for_testing 

Source
fn delete_database_for_testing(ctx: &Context, path: &Path) -> Result
Expand description

For unit and integration tests; removes the database directory when called. To prevent misuse, cfg!(test) must be true for a unit test or the integration test server is named localhost.