Allow disabling image features

This commit is contained in:
Sam Wilson
2024-01-11 12:38:01 -05:00
parent 7cb00fafd1
commit 169f2f6073
33 changed files with 154 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ mod common;
/**
* @author Sean Owen
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box1_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -41,6 +42,7 @@ fn upcablack_box1_test_case() {
/**
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box2_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -60,6 +62,7 @@ fn upcablack_box2_test_case() {
/**
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box3_reflective_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -79,6 +82,7 @@ fn upcablack_box3_reflective_test_case() {
/**
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box4_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -98,6 +102,7 @@ fn upcablack_box4_test_case() {
/**
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box5_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -118,6 +123,7 @@ fn upcablack_box5_test_case() {
* A set of blurry images taken with a fixed-focus device.
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn upcablack_box6_blurry_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(