Skip to content

Commit 2f5916c

Browse files
committed
Add missing tests
1 parent d662369 commit 2f5916c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/oak_ide/tests/integration/find_references.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,9 @@ fn test_cross_package_references_via_library() {
307307
(script, range(use_start, use_start + 3)),
308308
(pkg_file, range(0, 3)),
309309
]);
310+
311+
// Excluding the declaration drops the package definition `pkg_file`,
312+
// leaving only the script use.
313+
let refs = find_references(&db, script, offset(use_start), false);
314+
assert_eq!(pairs(&refs), vec![(script, range(use_start, use_start + 3))]);
310315
}

0 commit comments

Comments
 (0)