MCPcopy Index your code
hub / github.com/AI45Lab/Code / env_required

Function env_required

core/tests/test_s3_backend.rs:28–30  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

26use uuid::Uuid;
27
28fn env_required(key: &str) -> Option<String> {
29 std::env::var(key).ok().filter(|v| !v.is_empty())
30}
31
32fn live_config() -> Option<S3BackendConfig> {
33 let endpoint = env_required("A3S_S3_TEST_ENDPOINT")?;

Callers 1

live_configFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected