Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 06d5d9e

Browse files
Merge pull request #206 from github/test-fixes
2 parents 831f9cf + 08ac540 commit 06d5d9e

14 files changed

+61
-44
lines changed

stack-graphs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed
1515

1616
- The `IncorrectDefinitions` error is renamed to `IncorrectlyDefined`, and `IncorrectDefinitions` is the error used for the `Defines` assertion.
17+
- The `PartialPaths::find_all_partial_paths_in_file` method has been replaced by `PartialPaths::find_minimal_partial_path_set_in_file`, which computes a smaller set. The `ForwardPartialPathStitcher::find_locally_maximal_partial_path_set` function can be used to compute the set previously returned by `find_all_partial_paths_in_file` from the minimal partial path set.
1718

1819
## v0.10.2 -- 2023-01-10
1920

stack-graphs/src/c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ pub extern "C" fn sg_partial_path_arena_find_partial_paths_in_file(
15771577
let cancellation_flag: Option<&AtomicUsize> =
15781578
unsafe { std::mem::transmute(cancellation_flag.as_ref()) };
15791579
partials
1580-
.find_minimal_partial_paths_set_in_file(
1580+
.find_minimal_partial_path_set_in_file(
15811581
graph,
15821582
file,
15831583
&AtomicUsizeCancellationFlag(cancellation_flag),

stack-graphs/src/partial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ impl PartialPaths {
24852485
/// paths will not cover paths going through those edges.
24862486
///
24872487
/// [`PartialPath::extend`]: struct.PartialPath.html#method.extend
2488-
pub fn find_minimal_partial_paths_set_in_file<F>(
2488+
pub fn find_minimal_partial_path_set_in_file<F>(
24892489
&mut self,
24902490
graph: &StackGraph,
24912491
file: Handle<File>,

stack-graphs/tests/it/can_find_local_nodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn check_local_nodes(graph: &StackGraph, file: &str, expected_local_nodes: &[&st
2020
let mut partials = PartialPaths::new();
2121
let mut database = Database::new();
2222
partials
23-
.find_minimal_partial_paths_set_in_file(
23+
.find_minimal_partial_path_set_in_file(
2424
graph,
2525
file,
2626
&NoCancellation,

stack-graphs/tests/it/can_find_node_partial_paths_in_database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn check_node_partial_paths(
2929
let mut partials = PartialPaths::new();
3030
let mut db = Database::new();
3131
partials
32-
.find_minimal_partial_paths_set_in_file(
32+
.find_minimal_partial_path_set_in_file(
3333
graph,
3434
file,
3535
&NoCancellation,

stack-graphs/tests/it/can_find_partial_paths_in_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn check_partial_paths_in_file(graph: &StackGraph, file: &str, expected_paths: &
1919
let mut partials = PartialPaths::new();
2020
let mut results = BTreeSet::new();
2121
partials
22-
.find_minimal_partial_paths_set_in_file(
22+
.find_minimal_partial_path_set_in_file(
2323
graph,
2424
file,
2525
&NoCancellation,

stack-graphs/tests/it/can_find_root_partial_paths_in_database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn check_root_partial_paths(
3333
let mut partials = PartialPaths::new();
3434
let mut db = Database::new();
3535
partials
36-
.find_minimal_partial_paths_set_in_file(
36+
.find_minimal_partial_path_set_in_file(
3737
graph,
3838
file,
3939
&NoCancellation,

stack-graphs/tests/it/can_jump_to_definition_with_forward_partial_path_stitching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn check_jump_to_definition(graph: &StackGraph, expected_partial_paths: &[&str])
2323
// Generate partial paths for everything in the database.
2424
for file in graph.iter_files() {
2525
partials
26-
.find_minimal_partial_paths_set_in_file(
26+
.find_minimal_partial_path_set_in_file(
2727
graph,
2828
file,
2929
&NoCancellation,

stack-graphs/tests/it/can_jump_to_definition_with_forward_path_stitching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn check_jump_to_definition(graph: &StackGraph, expected_paths: &[&str]) {
2525
// Generate partial paths for everything in the database.
2626
for file in graph.iter_files() {
2727
partials
28-
.find_minimal_partial_paths_set_in_file(
28+
.find_minimal_partial_path_set_in_file(
2929
graph,
3030
file,
3131
&NoCancellation,

stack-graphs/tests/it/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ fn can_serialize_partial_paths() {
18181818
let mut db = Database::new();
18191819
for file in graph.iter_files() {
18201820
partials
1821-
.find_minimal_partial_paths_set_in_file(&graph, file, &NoCancellation, |g, ps, p| {
1821+
.find_minimal_partial_path_set_in_file(&graph, file, &NoCancellation, |g, ps, p| {
18221822
db.add_partial_path(g, ps, p);
18231823
})
18241824
.expect("Expect path finding to work");

0 commit comments

Comments
 (0)