Skip to main content

generate

Function generate 

Source
pub fn generate(file: &File, lang: Language) -> String
Expand description

Generate a contract test harness from a parsed intent file.

Returns a test module string (e.g., #[cfg(test)] mod contract_tests { ... } for Rust), or an empty string if the spec contains no test blocks.