in api_generator/src/generator/output.rs [252:281]
fn unbalanced_sections() -> anyhow::Result<()> {
merge_should_fail(
r#"
// GENERATED-BEGIN:foo
"#,
)?;
merge_should_fail(
r#"
// GENERATED-END
"#,
)?;
merge_should_fail(
r#"
// GENERATED-BEGIN:foo
// GENERATED-BEGIN:bar
"#,
)?;
merge_should_fail(
r#"
// GENERATED-BEGIN:foo
// GENERATED-END
// GENERATED-END
"#,
)?;
Ok(())
}