Skip to content

Commit 92d4505

Browse files
committed
Fix rebase conflicts
1 parent 18d6e10 commit 92d4505

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

crates/oak_db/src/tests/file_resolve_at.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn install_package(
356356
};
357357
let root = Root::new(
358358
db,
359-
file_url(&format!("{prefix}/{name}")),
359+
file_path(&format!("{prefix}/{name}")),
360360
kind,
361361
vec![],
362362
vec![],
@@ -367,7 +367,7 @@ fn install_package(
367367
};
368368
let pkg = Package::new(
369369
db,
370-
file_url(&format!("{prefix}/{name}/DESCRIPTION")),
370+
file_path(&format!("{prefix}/{name}/DESCRIPTION")),
371371
name.to_string(),
372372
version,
373373
namespace,
@@ -377,7 +377,7 @@ fn install_package(
377377
);
378378
let pkg_files: Vec<File> = files
379379
.iter()
380-
.map(|(path, contents)| File::new(db, file_url(path), contents.to_string(), Some(pkg)))
380+
.map(|(path, contents)| File::new(db, file_path(path), contents.to_string(), Some(pkg)))
381381
.collect();
382382
pkg.set_files(db).to(pkg_files);
383383
root.set_packages(db).to(vec![pkg]);
@@ -461,7 +461,7 @@ fn test_namespace_import_pkg_makes_export_resolve_in_package_file() {
461461
};
462462
let ws_pkg = Package::new(
463463
&db,
464-
file_url("workspace/mypkg/DESCRIPTION"),
464+
file_path("workspace/mypkg/DESCRIPTION"),
465465
"mypkg".to_string(),
466466
None,
467467
ns,
@@ -472,7 +472,7 @@ fn test_namespace_import_pkg_makes_export_resolve_in_package_file() {
472472
let source = "bar\n";
473473
let ws_file = File::new(
474474
&db,
475-
file_url("workspace/mypkg/R/a.R"),
475+
file_path("workspace/mypkg/R/a.R"),
476476
source.to_string(),
477477
Some(ws_pkg),
478478
);
@@ -512,7 +512,7 @@ fn test_namespace_importfrom_makes_export_resolve_in_package_file() {
512512
};
513513
let ws_pkg = Package::new(
514514
&db,
515-
file_url("workspace/mypkg/DESCRIPTION"),
515+
file_path("workspace/mypkg/DESCRIPTION"),
516516
"mypkg".to_string(),
517517
None,
518518
ns,
@@ -522,7 +522,7 @@ fn test_namespace_importfrom_makes_export_resolve_in_package_file() {
522522
);
523523
let ws_file = File::new(
524524
&db,
525-
file_url("workspace/mypkg/R/a.R"),
525+
file_path("workspace/mypkg/R/a.R"),
526526
"baz\n".to_string(),
527527
Some(ws_pkg),
528528
);

crates/oak_db/src/tests/package_resolve.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use oak_package_metadata::namespace::Namespace;
22
use salsa::Setter;
33
use stdext::SortedVec;
44

5-
use crate::tests::test_db::file_url;
5+
use crate::tests::test_db::file_path;
66
use crate::tests::test_db::workspace_root;
77
use crate::tests::test_db::TestDb;
88
use crate::DbInputs;
@@ -27,7 +27,7 @@ fn setup_package(
2727
};
2828
let pkg = Package::new(
2929
db,
30-
file_url(&format!("workspace/{pkg_name}/DESCRIPTION")),
30+
file_path(&format!("workspace/{pkg_name}/DESCRIPTION")),
3131
pkg_name.to_string(),
3232
None,
3333
namespace,
@@ -38,7 +38,7 @@ fn setup_package(
3838

3939
let file_entities: Vec<File> = files
4040
.iter()
41-
.map(|(path, contents)| File::new(db, file_url(path), contents.to_string(), Some(pkg)))
41+
.map(|(path, contents)| File::new(db, file_path(path), contents.to_string(), Some(pkg)))
4242
.collect();
4343
pkg.set_files(db).to(file_entities.clone());
4444
root.set_packages(db).to(vec![pkg]);

crates/oak_ide/tests/integration/support.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ fn install_pkg(
119119
let file = File::new(
120120
db,
121121
FilePath::from_url(&file_url),
122-
oak_db::FileRevision::zero(),
123-
Some(contents.to_string()),
122+
contents.to_string(),
124123
Some(pkg),
125124
);
126125
pkg.set_files(db).to(vec![file]);

0 commit comments

Comments
 (0)