Skip to main content

assert_template_exists

Macro assert_template_exists 

Source
macro_rules! assert_template_exists {
    ($path:expr) => { ... };
}
Expand description

Macro to verify a template file exists and contains expected content.

This is primarily used in tests to verify template structure.

§Example

assert_template_exists!("templates/my_prompt.txt");
assert_template_has_variable!("templates/my_prompt.txt", "CONTEXT");