mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Add enum hover action test.
This commit is contained in:
parent
5d0c1aa162
commit
92cfc0f2a1
@ -1161,4 +1161,19 @@ fn func(foo: i32) { if true { <|>foo; }; }
|
|||||||
);
|
);
|
||||||
assert_impl_action(&actions[0], 6);
|
assert_impl_action(&actions[0], 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_hover_enum_has_impl_action() {
|
||||||
|
let (_, actions) = check_hover_result(
|
||||||
|
"
|
||||||
|
//- /lib.rs
|
||||||
|
enum foo<|>() {
|
||||||
|
A,
|
||||||
|
B
|
||||||
|
}
|
||||||
|
",
|
||||||
|
&["enum foo"],
|
||||||
|
);
|
||||||
|
assert_impl_action(&actions[0], 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user