Skip to main content

test_endpoints_enabled

Function test_endpoints_enabled 

Source
pub fn test_endpoints_enabled(_modes: &ModesConfig) -> bool
Expand description

Returns true if dangerous test manipulation endpoints are enabled.

This is now a compile-time check via the test-endpoints cargo feature. The feature gates mock feeds, mock oracles, and /test/* endpoints. Should only be enabled for local dev and CI builds, never in deployed binaries.