jdrouet/mrml

View on GitHub
packages/mrml-core/src/mj_button/parse.rs

Summary

Maintainability
Test Coverage
#[cfg(test)]
mod tests {
    use crate::mj_button::MjButton;

    crate::should_parse!(
        success,
        MjButton,
        r#"<mj-button>
    <!-- Just a comment -->
    <b>foo</b>
    bar
</mj-button>"#
    );

    crate::should_async_parse!(
        async_success,
        MjButton,
        r#"<mj-button>
    <!-- Just a comment -->
    <b>foo</b>
    bar
</mj-button>"#
    );
}