diff options
author | Florian Klink <flokli@flokli.de> | 2023-05-17T11·21+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-05-17T13·06+0000 |
commit | 3a4e29c26141a24caa71a0dbaf40a6f8d1c2adef (patch) | |
tree | 32e2b8d73e38ea838914cdb27c7d7bca412d8581 /tvix/store/src/tests | |
parent | a6c7869393930c667e837b99cd36e0d8e9eb2498 (diff) |
refactor(tvix/store): rename import::{import_path -> ingest_path} r/6149
This distinguishes it better from the EvalIO::import_path method. Also update the docstring to explain what it does (and what it doesn't). Change-Id: I32a8b2869fa67a894df28532b22bf170961a2abf Reviewed-on: https://cl.tvl.fyi/c/depot/+/8578 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/tests')
-rw-r--r-- | tvix/store/src/tests/import.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tvix/store/src/tests/import.rs b/tvix/store/src/tests/import.rs index ed5154d6fec0..ef4ef74d09f7 100644 --- a/tvix/store/src/tests/import.rs +++ b/tvix/store/src/tests/import.rs @@ -1,7 +1,7 @@ use super::utils::{gen_blob_service, gen_directory_service}; use crate::blobservice::BlobService; use crate::directoryservice::DirectoryService; -use crate::import::import_path; +use crate::import::ingest_path; use crate::proto; use crate::tests::fixtures::DIRECTORY_COMPLICATED; use crate::tests::fixtures::*; @@ -19,7 +19,7 @@ fn symlink() { ) .unwrap(); - let root_node = import_path( + let root_node = ingest_path( &mut gen_blob_service(), &mut gen_directory_service(), tmpdir.path().join("doesntmatter"), @@ -43,7 +43,7 @@ fn single_file() { let mut blob_service = gen_blob_service(); - let root_node = import_path( + let root_node = ingest_path( &mut blob_service, &mut gen_directory_service(), tmpdir.path().join("root"), @@ -82,7 +82,7 @@ fn complicated() { let mut blob_service = gen_blob_service(); let mut directory_service = gen_directory_service(); - let root_node = import_path(&mut blob_service, &mut directory_service, tmpdir.path()) + let root_node = ingest_path(&mut blob_service, &mut directory_service, tmpdir.path()) .expect("must succeed"); // ensure root_node matched expectations |