Expand description
Shared utility functions for the CLM Rust Core.
This module consolidates commonly used helper functions that were previously duplicated across multiple source files. Centralizing them here follows the DRY (Don’t Repeat Yourself) principle and ensures consistent behavior.
Re-exports§
pub use crate::cross_cutting::context::CLMContext;
Functions§
- assert_
within - Asserts a test’s wall-clock bound
measured < bound(INV-589), mirroringtests/timing.py. - capture_
process_ output - Captures stdout and stderr from a
std::process::Outputas owned Strings. - collect_
clm_ mock_ vars - Collects all
CLM_MOCK_*environment variables, filtering them from the current process environment. - indent_
lines - Indents each non-empty line of a string by the specified number of spaces.
- is_
zero_ fs - Returns
trueif the CLM runtime is operating in Zero-File-System mode. - now_
iso8601 - Returns the current local timestamp in ISO 8601 format:
%Y-%m-%dT%H:%M:%S%z. - remove_
env_ var - Removes an environment variable.
- set_
env_ var - Sets an environment variable.
Type Aliases§
- Evaluation
Context - Compatibility alias for
crate::cross_cutting::context::CLMContext(INV-490,DoD-490-06).