wdext 0.1.0

A DbgEng wrapper framework
// SPDX-FileCopyrightText: 2026 takubokudori
// SPDX-License-Identifier: MIT OR Apache-2.0
#[cfg(test)]
pub mod tests {
    use crate::tests::util::local_debug2;
    use wdext::data::{DebugExecutionFlags, DebugOutctlFlags};

    mod util;

    #[test]
    fn test_execute() {
        let ctx = local_debug2();
        let ctrl = ctx.control();

        let out = ctrl
            .execute_and_capture_dml(
                DebugOutctlFlags::ThisClient,
                r#".printf "test""#,
                DebugExecutionFlags::NotLogged,
            )
            .unwrap();
        assert_eq!(out, "test");

        let out = ctrl
            .execute_and_capture_text(
                DebugOutctlFlags::ThisClient,
                r#".printf "test2""#,
                DebugExecutionFlags::NotLogged,
            )
            .unwrap();
        assert_eq!(out, "test2");
    }
}