Skip to main content

is_test_mode

Function is_test_mode 

Source
pub fn is_test_mode() -> bool
Expand description

Check if test mode is enabled.

Test mode is enabled by setting SC_TEST_DB=1 (or any non-empty value). This redirects all database operations to an isolated test database.