This is an automated email from the ASF dual-hosted git repository.

PsiACE pushed a commit to branch chore/xtask-download-serde-data
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git


The following commit(s) were added to 
refs/heads/chore/xtask-download-serde-data by this push:
     new 63317b2  test: remove implementation-coupled xtask test
63317b2 is described below

commit 63317b28205c5c01dffb8a3fd8a3873d2c62d03d
Author: Chojan Shang <[email protected]>
AuthorDate: Tue Jul 28 16:26:23 2026 +0800

    test: remove implementation-coupled xtask test
---
 xtask/src/test_data.rs | 47 -----------------------------------------------
 1 file changed, 47 deletions(-)

diff --git a/xtask/src/test_data.rs b/xtask/src/test_data.rs
index ea5e0f7..57bb3a5 100644
--- a/xtask/src/test_data.rs
+++ b/xtask/src/test_data.rs
@@ -158,50 +158,3 @@ fn ensure_not_symlink(path: &Path) -> Result<()> {
     }
     Ok(())
 }
-
-#[cfg(test)]
-mod tests {
-    use std::fs;
-    use std::io::Cursor;
-    use std::io::Write;
-
-    use tempfile::tempdir;
-    use zip::ZipWriter;
-    use zip::write::SimpleFileOptions;
-
-    use super::extract_snapshots;
-
-    #[test]
-    fn extracts_only_selected_snapshots_and_removes_stale_files() {
-        let temp_dir = tempdir().unwrap();
-        let destination = temp_dir.path().join("java_generated_files");
-        fs::create_dir(&destination).unwrap();
-        fs::write(destination.join("stale.sk"), b"stale").unwrap();
-        fs::write(destination.join("keep.txt"), b"keep").unwrap();
-
-        let mut writer = ZipWriter::new(Cursor::new(Vec::new()));
-        let options = SimpleFileOptions::default();
-        writer
-            .start_file("tck/serialization/java/snapshots/java.sk", options)
-            .unwrap();
-        writer.write_all(b"java").unwrap();
-        writer
-            .start_file("tck/serialization/cpp/snapshots/cpp.sk", options)
-            .unwrap();
-        writer.write_all(b"cpp").unwrap();
-        writer
-            .start_file("tck/serialization/java/other/ignored.sk", options)
-            .unwrap();
-        writer.write_all(b"ignored").unwrap();
-        let archive = writer.finish().unwrap().into_inner();
-
-        let mut archive = zip::ZipArchive::new(Cursor::new(archive)).unwrap();
-        extract_snapshots(&mut archive, &destination, "java").unwrap();
-
-        assert_eq!(fs::read(destination.join("java.sk")).unwrap(), b"java");
-        assert_eq!(fs::read(destination.join("keep.txt")).unwrap(), b"keep");
-        assert!(!destination.join("cpp.sk").exists());
-        assert!(!destination.join("ignored.sk").exists());
-        assert!(!destination.join("stale.sk").exists());
-    }
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to