Add test makr

This commit is contained in:
Aleksey Kladov 2020-10-06 19:20:56 +02:00
parent ec1f459980
commit 801e5b453c

View file

@ -222,6 +222,7 @@ fn find_path_inner(
best_path_len - 1, best_path_len - 1,
prefixed, prefixed,
)?; )?;
mark::hit!(partially_imported);
path.segments.push(info.path.segments.last().unwrap().clone()); path.segments.push(info.path.segments.last().unwrap().clone());
Some(path) Some(path)
}) })
@ -515,6 +516,7 @@ mod tests {
#[test] #[test]
fn partially_imported() { fn partially_imported() {
mark::check!(partially_imported);
// Tests that short paths are used even for external items, when parts of the path are // Tests that short paths are used even for external items, when parts of the path are
// already in scope. // already in scope.
let code = r#" let code = r#"