test: add test about path completion (#972)

This commit is contained in:
Myriad-Dreamin 2024-12-10 15:05:51 +08:00 committed by GitHub
parent 969cc6d339
commit f665d7c50c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 75 additions and 1 deletions

View file

@ -93,7 +93,7 @@ pub fn run_with_ctx<T>(
Some("example package (mock).".into()),
)]
});
ctx.test_completion_files(Vec::new);
ctx.test_completion_files(|| paths.clone());
ctx.test_files(|| paths);
f(&mut ctx, p)
}