aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/typing
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-12 23:51:10 +0100
committerJonas Schievink <[email protected]>2021-04-12 23:51:10 +0100
commita8ca4666f119b33349151a0a97ef51bce5913fd3 (patch)
tree8c6edba7932b94a29bd01b8b984bddc8604c8bcd /crates/ide/src/typing
parent89f015ead9ed947d81eecb6e7533f0b8e5f4ed54 (diff)
Add a cov_mark
Diffstat (limited to 'crates/ide/src/typing')
-rw-r--r--crates/ide/src/typing/on_enter.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/typing/on_enter.rs b/crates/ide/src/typing/on_enter.rs
index 2a0d50098..7d2db201a 100644
--- a/crates/ide/src/typing/on_enter.rs
+++ b/crates/ide/src/typing/on_enter.rs
@@ -51,6 +51,7 @@ pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option<Text
51 if let Some(edit) = find_node_at_offset(file.syntax(), position.offset - TextSize::of('{')) 51 if let Some(edit) = find_node_at_offset(file.syntax(), position.offset - TextSize::of('{'))
52 .and_then(|block| on_enter_in_block(block, position)) 52 .and_then(|block| on_enter_in_block(block, position))
53 { 53 {
54 cov_mark::hit!(indent_block_contents);
54 return Some(edit); 55 return Some(edit);
55 } 56 }
56 } 57 }
@@ -346,6 +347,7 @@ fn main() {
346 347
347 #[test] 348 #[test]
348 fn indents_fn_body_block() { 349 fn indents_fn_body_block() {
350 cov_mark::check!(indent_block_contents);
349 do_check( 351 do_check(
350 r#" 352 r#"
351fn f() {$0()} 353fn f() {$0()}