pub fn generate(file: &File, lang: Language) -> StringExpand 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.