this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc: update description of gzip roundtrip tests

+12 -6
+12 -6
tests/cli.rs
··· 177 177 } 178 178 179 179 /// Gzip roundtrip using stdin 180 - /// Compressing: input = stdin, output = archive.gz 181 - /// Extracting: input = archive.gz, output = stdout 180 + /// Compressing: input = stdin, output = test.txt.gz 181 + /// Extracting: input = test.txt.gz, output = test.txt 182 + /// 183 + /// ``` bash 184 + /// cat test.txt | cmprss gzip test.txt.gz 185 + /// cmprss gzip --ignore-pipes --extract test.txt.gz 186 + /// ``` 182 187 #[test] 183 188 fn gzip_roundtrip_stdin() -> Result<(), Box<dyn std::error::Error>> { 184 189 let file = assert_fs::NamedTempFile::new("test.txt")?; ··· 192 197 compress 193 198 .current_dir(&working_dir) 194 199 .arg("gzip") 195 - .arg("--compression") 196 - .arg("0") 197 200 .arg("test.txt.gz") 198 201 .stdin(Stdio::from(File::open(file.path())?)); 199 202 compress.assert().success(); ··· 219 222 /// Gzip roundtrip using filename inference 220 223 /// Compressing: input = stdin, output = default filename (archive.gz) 221 224 /// Extracting: input = archive.gz, output = default filename (archive) 225 + /// 226 + /// ``` bash 227 + /// cat test.txt | cmprss gzip 228 + /// cmprss gzip --ignore-pipes --extract archive.gz 229 + /// ``` 222 230 #[test] 223 231 fn gzip_roundtrip_inferred_output_filenames() -> Result<(), Box<dyn std::error::Error>> { 224 232 let file = assert_fs::NamedTempFile::new("test.txt")?; ··· 232 240 compress 233 241 .current_dir(&working_dir) 234 242 .arg("gzip") 235 - .arg("--compression") 236 - .arg("0") 237 243 .arg("--ignore-stdout") 238 244 .stdin(Stdio::from(File::open(file.path())?)); 239 245 compress.assert().success();