Skip to content

Commit a8ca466

Browse files
Add a cov_mark
1 parent 89f015e commit a8ca466

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ide/src/typing/on_enter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option<Text
5151
if let Some(edit) = find_node_at_offset(file.syntax(), position.offset - TextSize::of('{'))
5252
.and_then(|block| on_enter_in_block(block, position))
5353
{
54+
cov_mark::hit!(indent_block_contents);
5455
return Some(edit);
5556
}
5657
}
@@ -346,6 +347,7 @@ fn main() {
346347

347348
#[test]
348349
fn indents_fn_body_block() {
350+
cov_mark::check!(indent_block_contents);
349351
do_check(
350352
r#"
351353
fn f() {$0()}

0 commit comments

Comments
 (0)