Skip to content

test module name wrong detection regression #79

Open
@Dushistov

Description

@Dushistov

Looks like #76 breaks test running thing for me.

I have

My code looks like this:

mod tests {
    #[test]
    fn test_double_map_err() {
        do_parse(
            "double_map_err",
            r#"
mod swig_foreign_types_map {}
mod swig_foreign_types_map {}
"#,
            64,
            HashMap::new(),
        )
        .unwrap_err();
    }

    #[test]
   fn another_test() {
   }
}

And after #76 cargo.el tries to run swig_foreign_types_map::another_test instead of tests::another_test

I revert
git diff 8a79f4e..5462994
(cd ~/.emacs.d/elpa/cargo-20190101.2043 && patch -p1 -R)

and all starts work again as expected

cc @ralexstokes @kwrooijen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions