aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-08-12 21:06:32 +0100
committerKirill Bulatov <[email protected]>2019-08-26 20:44:50 +0100
commitc1f47c37886b5cba116ba99fa37977d51871eba4 (patch)
tree858db3e0343ca35c5e3ff7c04209eb7c25b022bb /crates/ra_hir/src/ty/tests.rs
parent0ce05633a170076a3624a79ed96a40c1730a8164 (diff)
Add test marks
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index 6bf56959d..7ec834836 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -3595,12 +3595,13 @@ fn no_such_field_diagnostics() {
3595 ); 3595 );
3596} 3596}
3597 3597
3598#[cfg(test)]
3599mod match_with_never_tests { 3598mod match_with_never_tests {
3600 use super::type_at; 3599 use super::type_at;
3600 use test_utils::covers;
3601 3601
3602 #[test] 3602 #[test]
3603 fn match_complex_arm_ty() { 3603 fn match_complex_arm_ty() {
3604 covers!(match_complex_arm_ty);
3604 let t = type_at( 3605 let t = type_at(
3605 r#" 3606 r#"
3606//- /main.rs 3607//- /main.rs
@@ -3624,6 +3625,7 @@ fn test(a: i32) {
3624 3625
3625 #[test] 3626 #[test]
3626 fn match_first_arm_never() { 3627 fn match_first_arm_never() {
3628 covers!(match_first_arm_never);
3627 let t = type_at( 3629 let t = type_at(
3628 r#" 3630 r#"
3629//- /main.rs 3631//- /main.rs
@@ -3644,6 +3646,7 @@ fn test(a: i32) {
3644 3646
3645 #[test] 3647 #[test]
3646 fn match_second_arm_never() { 3648 fn match_second_arm_never() {
3649 covers!(match_second_arm_never);
3647 let t = type_at( 3650 let t = type_at(
3648 r#" 3651 r#"
3649//- /main.rs 3652//- /main.rs
@@ -3664,6 +3667,7 @@ fn test(a: i32) {
3664 3667
3665 #[test] 3668 #[test]
3666 fn match_all_arms_never() { 3669 fn match_all_arms_never() {
3670 covers!(match_all_arms_never);
3667 let t = type_at( 3671 let t = type_at(
3668 r#" 3672 r#"
3669//- /main.rs 3673//- /main.rs
@@ -3682,6 +3686,7 @@ fn test(a: i32) {
3682 3686
3683 #[test] 3687 #[test]
3684 fn match_no_never_arms() { 3688 fn match_no_never_arms() {
3689 covers!(match_no_never_arms);
3685 let t = type_at( 3690 let t = type_at(
3686 r#" 3691 r#"
3687//- /main.rs 3692//- /main.rs