refactor(tvix/glue): move decompression into fetchers/ subdir
This is specifically used for the fetcher code (only). Moving it to there for now. Change-Id: I1e1d0541b85340ef4ff3a4c6b3fa99b51853f539 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11532 Reviewed-by: edef <edef@edef.eu> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
69e4a78818
commit
26b77b2cf3
3 changed files with 7 additions and 5 deletions
|
@ -204,9 +204,9 @@ mod tests {
|
|||
}
|
||||
|
||||
#[rstest]
|
||||
#[case::gzip(include_bytes!("tests/blob.tar.gz"))]
|
||||
#[case::bzip2(include_bytes!("tests/blob.tar.bz2"))]
|
||||
#[case::xz(include_bytes!("tests/blob.tar.xz"))]
|
||||
#[case::gzip(include_bytes!("../tests/blob.tar.gz"))]
|
||||
#[case::bzip2(include_bytes!("../tests/blob.tar.bz2"))]
|
||||
#[case::xz(include_bytes!("../tests/blob.tar.xz"))]
|
||||
#[tokio::test]
|
||||
async fn compressed_tar(#[case] data: &[u8]) {
|
||||
let reader = DecompressedReader::new(BufReader::new(data));
|
|
@ -17,7 +17,10 @@ use tvix_castore::{
|
|||
use tvix_store::{pathinfoservice::PathInfoService, proto::PathInfo};
|
||||
use url::Url;
|
||||
|
||||
use crate::{builtins::FetcherError, decompression::DecompressedReader};
|
||||
use crate::builtins::FetcherError;
|
||||
|
||||
mod decompression;
|
||||
use decompression::DecompressedReader;
|
||||
|
||||
/// Representing options for doing a fetch.
|
||||
#[derive(Clone, Eq, PartialEq)]
|
|
@ -6,7 +6,6 @@ pub mod tvix_build;
|
|||
pub mod tvix_io;
|
||||
pub mod tvix_store_io;
|
||||
|
||||
mod decompression;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
|
|
Loading…
Reference in a new issue