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 ean13_black_box1_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -43,6 +44,7 @@ fn ean13_black_box1_test_case() {
*
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn ean13_black_box2_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -62,6 +64,7 @@ fn ean13_black_box2_test_case() {
/**
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn ean13_black_box3_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -82,6 +85,7 @@ fn ean13_black_box3_test_case() {
* A very difficult set of images taken with extreme shadows and highlights.
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn ean13_black_box4_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -101,6 +105,7 @@ fn ean13_black_box4_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 ean13_black_box5_blurry_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(