Skip to content

Commit 2e72224

Browse files
committed
Fix rebase conflicts
1 parent 7dc4be9 commit 2e72224

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

crates/oak_db/src/tests/file_resolve.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,13 +643,15 @@ fn test_resolve_if_else_in_collated_file_offers_both() {
643643
let a = File::new(
644644
&db,
645645
file_path("/w/pkg/R/a.R"),
646-
"if (cond) fn <- 1 else fn <- 2\n".to_string(),
646+
FileRevision::zero(),
647+
Some("if (cond) fn <- 1 else fn <- 2\n".to_string()),
647648
Some(pkg),
648649
);
649650
let b = File::new(
650651
&db,
651652
file_path("/w/pkg/R/b.R"),
652-
"use_fn <- function() fn\n".to_string(),
653+
FileRevision::zero(),
654+
Some("use_fn <- function() fn\n".to_string()),
653655
Some(pkg),
654656
);
655657
pkg.set_files(&mut db).to(vec![a, b]);
@@ -693,13 +695,15 @@ fn test_resolve_collated_sequential_redef_resolves_to_last() {
693695
let a = File::new(
694696
&db,
695697
file_path("/w/pkg/R/a.R"),
696-
"shared <- 1\nshared <- 2\n".to_string(),
698+
FileRevision::zero(),
699+
Some("shared <- 1\nshared <- 2\n".to_string()),
697700
Some(pkg),
698701
);
699702
let b = File::new(
700703
&db,
701704
file_path("/w/pkg/R/b.R"),
702-
"use_shared <- function() shared\n".to_string(),
705+
FileRevision::zero(),
706+
Some("use_shared <- function() shared\n".to_string()),
703707
Some(pkg),
704708
);
705709
pkg.set_files(&mut db).to(vec![a, b]);

crates/oak_db/src/tests/package_resolve.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ fn test_reexport_via_import_from_resolves_to_source() {
214214
let tibble_file = File::new(
215215
&db,
216216
file_path("workspace/tibble/R/tibble.R"),
217-
"tibble <- function() 1\n".to_string(),
217+
FileRevision::zero(),
218+
Some("tibble <- function() 1\n".to_string()),
218219
Some(tibble),
219220
);
220221
tibble.set_files(&mut db).to(vec![tibble_file]);
@@ -240,7 +241,8 @@ fn test_reexport_via_import_from_resolves_to_source() {
240241
let dplyr_file = File::new(
241242
&db,
242243
file_path("workspace/dplyr/R/reexport.R"),
243-
"tibble::tibble\n".to_string(),
244+
FileRevision::zero(),
245+
Some("tibble::tibble\n".to_string()),
244246
Some(dplyr),
245247
);
246248
dplyr.set_files(&mut db).to(vec![dplyr_file]);

0 commit comments

Comments
 (0)