Codebase list rust-stfu8 / a8e206b
image - disable more tests that require missing test data. Peter Michael Green 2 years ago
1 changed file(s) with 35 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2020 ===================================================================
2121 --- image.orig/src/codecs/png.rs
2222 +++ image/src/codecs/png.rs
23 @@ -648,7 +648,7 @@ mod tests {
23 @@ -652,7 +652,7 @@ mod tests {
2424 use std::io::Read;
2525 use super::*;
2626
2929 fn ensure_no_decoder_off_by_one() {
3030 let dec = PngDecoder::new(std::fs::File::open("tests/images/png/bugfixes/debug_triangle_corners_widescreen.png").unwrap())
3131 .expect("Unable to read PNG file (does it exist?)");
32 @@ -669,9 +669,9 @@ mod tests {
32 @@ -673,9 +673,9 @@ mod tests {
3333 .collect::<Vec<u8>>();
3434
3535 assert_eq![6_000_000, correct_bytes.len()];
4141 fn underlying_error() {
4242 use std::error::Error;
4343
44 @@ -684,5 +684,5 @@ mod tests {
44 @@ -688,5 +688,5 @@ mod tests {
4545 .unwrap()
4646 .downcast_ref::<png::DecodingError>()
4747 .expect("Caused by a png error");
7272 ===================================================================
7373 --- image.orig/src/imageops/sample.rs
7474 +++ image/src/imageops/sample.rs
75 @@ -887,7 +887,7 @@ mod tests {
75 @@ -837,7 +837,7 @@ mod tests {
76 #[cfg(feature = "benchmarks")]
77 use test;
78
79 - #[bench]
80 + /*#[bench]
81 #[cfg(all(feature = "benchmarks", feature = "png"))]
82 fn bench_resize(b: &mut test::Bencher) {
83 use std::path::Path;
84 @@ -846,7 +846,7 @@ mod tests {
85 test::black_box(resize(&img, 200, 200, FilterType::Nearest));
86 });
87 b.bytes = 800 * 800 * 3 + 200 * 200 * 3;
88 - }
89 + }*/
90
91 #[test]
92 fn test_issue_186() {
93 @@ -854,7 +854,7 @@ mod tests {
94 let _ = resize(&img, 50, 50, FilterType::Lanczos3);
95 }
96
97 - #[bench]
98 + /*#[bench]
99 #[cfg(all(feature = "benchmarks", feature = "tiff"))]
100 fn bench_thumbnail(b: &mut test::Bencher) {
101 let path = concat!(env!("CARGO_MANIFEST_DIR"), "/tests/images/tiff/testsuite/mandrill.tiff");
102 @@ -885,9 +885,9 @@ mod tests {
103 test::black_box(image.thumbnail(256, 256));
104 });
76105 b.bytes = 193 * 193 * 4 + 256 * 256 * 4;
77 }
106 - }
107 + }*/
78108
79109 - #[test]
80110 + /*#[test]